mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
This commit is contained in:
parent
ac1568a9b9
commit
97f25d725d
@ -565,6 +565,24 @@ linux-cloud-tools-virtual \
|
||||
linux-image-virtual \
|
||||
linux-image-extra-virtual
|
||||
|
||||
# Add aliases
|
||||
if [ -f /root/.bash_aliases ]
|
||||
then
|
||||
if ! grep -q "nextcloud" /root/.bash_aliases
|
||||
then
|
||||
{
|
||||
echo "alias nextcloud_occ='sudo -u www-data php /var/www/nextcloud/occ'"
|
||||
echo "alias run_update_nextcloud='bash /var/scripts/update.sh'"
|
||||
} >> /root/.bash_aliases
|
||||
fi
|
||||
elif [ ! -f /root/.bash_aliases ]
|
||||
then
|
||||
{
|
||||
echo "alias nextcloud_occ='sudo -u www-data php /var/www/nextcloud/occ'"
|
||||
echo "alias run_update_nextcloud='bash /var/scripts/update.sh'"
|
||||
} > /root/.bash_aliases
|
||||
fi
|
||||
|
||||
# Set secure permissions final (./data/.htaccess has wrong permissions otherwise)
|
||||
bash $SECURE & spinner_loading
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user