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:
parent
34b3fcdf3d
commit
5d4dd7d41f
2 changed files with 7 additions and 6 deletions
|
@ -18,9 +18,6 @@ final_path=/var/www/z-push
|
|||
sudo mkdir -p $final_path
|
||||
sudo cp -a ../sources/* $final_path
|
||||
|
||||
# Set permissions to roundcube directory
|
||||
sudo chown -R www-data: $final_path
|
||||
|
||||
# Configuration
|
||||
sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" ../conf/config*.php
|
||||
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/config*.php
|
||||
|
@ -49,9 +46,13 @@ else
|
|||
sudo cp ../conf/config.php $final_path/
|
||||
sed -i "s@DOMAINTOCHANGE@$domain@g" ../conf/backend/config-imap.php
|
||||
sudo cp ../conf/backend/config-imap.php $final_path/backend/imap/config.php
|
||||
|
||||
|
||||
fi
|
||||
|
||||
# Set permissions to z-push directory
|
||||
sudo chown -R www-data: $final_path
|
||||
|
||||
|
||||
# Create directory
|
||||
sudo mkdir -p /var/log/z-push
|
||||
sudo chmod 750 /var/log/z-push
|
||||
|
|
|
@ -41,7 +41,7 @@ else
|
|||
sudo cp ../conf/config.php $final_path/
|
||||
sed -i "s@DOMAINTOCHANGE@$domain@g" ../conf/backend/config-imap.php
|
||||
sudo cp ../conf/backend/config-imap.php $final_path/backend/imap/config.php
|
||||
|
||||
|
||||
fi
|
||||
|
||||
# Create directory
|
||||
|
@ -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/
|
||||
|
||||
|
||||
# Set permissions to roundcube directory
|
||||
# Set permissions to z-push directory
|
||||
sudo chown -R www-data: $final_path
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
|
|
Loading…
Add table
Reference in a new issue