diff --git a/conf/config.php b/conf/config.php index 7889ef3..21c5bf7 100644 --- a/conf/config.php +++ b/conf/config.php @@ -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', ''); diff --git a/scripts/install b/scripts/install index c7748ba..fe67ab1 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index 42db852..fe2fe7f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index a916d82..01135cf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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