1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Adjust permission to /var/www/z-push

This commit is contained in:
polytan02 2015-08-10 13:44:20 +01:00
parent 34b3fcdf3d
commit 5d4dd7d41f
2 changed files with 7 additions and 6 deletions

View file

@ -18,9 +18,6 @@ final_path=/var/www/z-push
sudo mkdir -p $final_path sudo mkdir -p $final_path
sudo cp -a ../sources/* $final_path sudo cp -a ../sources/* $final_path
# Set permissions to roundcube directory
sudo chown -R www-data: $final_path
# Configuration # Configuration
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config*.php sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config*.php
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/config*.php sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/config*.php
@ -52,6 +49,10 @@ else
fi fi
# Set permissions to z-push directory
sudo chown -R www-data: $final_path
# Create directory # Create directory
sudo mkdir -p /var/log/z-push sudo mkdir -p /var/log/z-push
sudo chmod 750 /var/log/z-push sudo chmod 750 /var/log/z-push

View file

@ -53,7 +53,7 @@ sudo chown www-data:www-data /var/log/z-push
sudo ln -s /usr/share/awl/inc/XML* /var/www/z-push/include/ sudo ln -s /usr/share/awl/inc/XML* /var/www/z-push/include/
# Set permissions to roundcube directory # Set permissions to z-push directory
sudo chown -R www-data: $final_path sudo chown -R www-data: $final_path
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory