1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hedgedoc_ynh.git synced 2024-09-03 19:25:52 +02:00
This commit is contained in:
Éric Gaspar 2023-11-15 18:54:52 +01:00
parent eb2f062d8b
commit eb72179fe5
2 changed files with 12 additions and 1 deletions

View file

@ -78,7 +78,7 @@ popd
ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_script_progression --message="Modifying a config file..." --weight=1
url_path=${path#/} url_path=${path#/}
ynh_add_config --template="../conf/config.json.example" --destination="$install_dir/config.json" ynh_add_config --template="config.json.example" --destination="$install_dir/config.json"
chmod 600 "$install_dir/config.json" chmod 600 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json" chown $app:$app "$install_dir/config.json"

View file

@ -98,6 +98,17 @@ then
popd popd
fi fi
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
url_path=${path#/}
ynh_add_config --template="config.json.example" --destination="$install_dir/config.json"
chmod 600 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================