1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/radicale_ynh.git synced 2024-09-03 20:16:14 +02:00

Backup config

This commit is contained in:
Maniack Crudelis 2016-06-19 12:30:28 +02:00
parent a12f65d41e
commit 87e944c107

View file

@ -97,7 +97,7 @@ then #Configuration InfCloud
;;
esac
sudo yunohost app setting $app language -v $language
CHECK_MD5_CONFIG "config.js" "$final_path/infcloud/config.js" # Enregistre la somme de contrôle du fichier de config
CHECK_MD5_CONFIG "config.js" "$final_path/infcloud/config.js" # Créé un backup du fichier de config si il a été modifié.
sudo cp ../conf/config.js "$final_path/infcloud/"
sudo sed -i "s@__DOMAIN__@$domain@g" "$final_path/infcloud/config.js"
sudo sed -i "s@__PATH__@$path@g" "$final_path/infcloud/config.js"