1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/droppy_ynh.git synced 2024-09-03 18:26:27 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-09-04 10:25:27 +02:00
parent 54ee948afd
commit 718a914144
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -123,12 +123,6 @@ ynh_script_progression --message="Modifying a config file..." --weight=2
ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config/config.json"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 600 $final_path/config/config.json
chown $app:$app $final_path/config/config.json
#=================================================
# SETUP SYSTEMD
#=================================================
@ -139,6 +133,12 @@ ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --targ
# Create a dedicated systemd config
ynh_add_systemd_config
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 600 $final_path/config/config.json
chown $app:$app $final_path/config/config.json
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================