1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00
This commit is contained in:
ericgaspar 2021-08-08 14:00:19 +02:00
parent 3f38a8db23
commit 560f24fa2d
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 9 additions and 3 deletions

View file

@ -37,6 +37,8 @@ ynh_print_info --message="Declaring files to be backed up..."
#=================================================
ynh_backup --src_path="$final_path"
ynh_backup --src_path="/etc/vikunja/config.yml"
ynh_backup --src_path="/opt/vikunja"
#=================================================
# BACKUP THE NGINX CONFIGURATION

View file

@ -111,9 +111,9 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
domain="$new_domain"
path="$new_path"
ynh_add_config --template="../conf/miniflux.conf" --destination="$final_path/$app.conf"
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
chmod 600 "$final_path/$app.conf"
chmod 600 "/etc/vikunja/config.yml"
#=================================================
# GENERIC FINALISATION

View file

@ -66,9 +66,13 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chmod +x "$final_path/miniflux"
chown -R $app:www-data "$final_path"
ynh_restore_file --origin_path="/etc/vikunja/config.yml"
ynh_restore_file --origin_path="/opt/vikunja"
chmod +x "/opt/vikunja/vikunja"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================