mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Set proper permissions
This commit is contained in:
parent
0826b10798
commit
233a49051d
4 changed files with 9 additions and 5 deletions
|
@ -214,7 +214,7 @@ define('BRUTEFORCE_LOCKDOWN_DURATION', 15);
|
|||
|
||||
// Session duration in second (0 = until the browser is closed)
|
||||
// See http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
|
||||
define('SESSION_DURATION', 60);
|
||||
define('SESSION_DURATION', 0);
|
||||
|
||||
// HTTP client proxy
|
||||
define('HTTP_PROXY_HOSTNAME', '');
|
||||
|
|
|
@ -36,9 +36,9 @@ sudo sed -i "s/yuno_admin/$admin/g" $final_path/config.php
|
|||
sudo sed -i "s/yuno_email/$email/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_domain/$domain/g" $final_path/config.php
|
||||
|
||||
# Set permissions to data directory and config file
|
||||
# Set permissions to kanboard and data directory
|
||||
sudo chown -R root:root $final_path
|
||||
sudo chown -R www-data:www-data $final_path/data
|
||||
sudo chown www-data:www-data $final_path/config.php
|
||||
|
||||
# Use dedicated php pool
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
|
|
|
@ -9,6 +9,10 @@ backup_dir=$1/apps/$app
|
|||
# Restore sources & data
|
||||
sudo cp -a $backup_dir/sources/. /var/www/$app
|
||||
|
||||
# Restore permissions
|
||||
sudo chown -R root:root $final_path
|
||||
sudo chown -R www-data:www-data $final_path/data
|
||||
|
||||
# Restore mysql dump
|
||||
db_pwd=$(sudo yunohost app setting $app mysqlpwd)
|
||||
sudo mysql -u $app -p$db_pwd $app < $backup_dir/$app.dmp
|
||||
|
|
|
@ -26,9 +26,9 @@ sudo sed -i "s/yuno_admin/$admin/g" $final_path/config.php
|
|||
sudo sed -i "s/yuno_email/$email/g" $final_path/config.php
|
||||
sudo sed -i "s/yuno_domain/$domain/g" $final_path/config.php
|
||||
|
||||
# Set permissions to data directory and config file
|
||||
# Set permissions to kanboard and data directory
|
||||
sudo chown -R root:root $final_path
|
||||
sudo chown -R www-data:www-data $final_path/data
|
||||
sudo chown www-data:www-data $final_path/config.php
|
||||
|
||||
# Use dedicated php pool
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
|
|
Loading…
Reference in a new issue