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

more direct

This commit is contained in:
rodinux 2024-01-03 11:52:29 +01:00
parent 40987c2d10
commit 955e600fbc

View file

@ -36,12 +36,11 @@ fi
if [ -f "$install_dir/config.local.yunohost.php" ]
then
ynh_script_progression --message="cleaning conf files..." --weight=5
mv "$install_dir/config.local.php" "$install_dir/config.local.php.old"
ynh_secure_remove "$install_dir/config.local.php"
mv "$install_dir/config.local.yunohost.php" "$install_dir/config.local.php"
chmod 440 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
ynh_store_file_checksum --file="$install_dir/config.local.php"
ynh_secure_remove "$install_dir/config.local.php.old"
fi
ynh_script_progression --message="removing old conf files if they exist..." --weight=5