1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

mfix needed config.local.user.php change place

This commit is contained in:
rodinux 2023-09-19 19:45:33 +02:00
parent 7e1f23973b
commit db2c97fbcc
2 changed files with 2 additions and 4 deletions

View file

@ -27,10 +27,8 @@ find "$install_dir/data" -type f -exec chmod 660 {} +
chmod 440 "$install_dir/config.local.php" chmod 440 "$install_dir/config.local.php"
chmod 440 "$install_dir/config.local.yunohost.php" chmod 440 "$install_dir/config.local.yunohost.php"
if [[ $install_dir/config.local.user.php -f ]]; then if [ -f "$install_dir/config.local.user.php" ]; then
chmod 660 "$install_dir/config.local.user.php" chmod 660 "$install_dir/config.local.user.php"
else
chmod 660 "$install_dir/data/config.local.user.php"
fi fi
#================================================= #=================================================

View file

@ -39,7 +39,7 @@ ynh_script_progression --message="Backup of the DB in temporary file...." --weig
tmp_data_backup=$(mktemp -d) tmp_data_backup=$(mktemp -d)
rsync -a $install_dir/data/ $tmp_data_backup/ rsync -a $install_dir/data/ $tmp_data_backup/
if [[ $install_dir/config.local.user.php -f ]]; then if [ -f "$install_dir/config.local.user.php" ]; then
cp -a $install_dir/config.local.user.php $tmp_data_backup/ cp -a $install_dir/config.local.user.php $tmp_data_backup/
fi fi