mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
Fix
This commit is contained in:
parent
79fd5e7e4a
commit
023ca2d6ce
6 changed files with 12 additions and 12 deletions
|
@ -7,8 +7,8 @@ Requires=postgresql.service redis.service
|
|||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=/opt/vikunja
|
||||
ExecStart=/opt/vikunja/vikunja
|
||||
WorkingDirectory=/opt/__APP__
|
||||
ExecStart=/opt/__APP__/vikunja
|
||||
RestartSec=2s
|
||||
Restart=always
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"requirements": {
|
||||
"yunohost": ">= 4.3.0"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"multi_instance": true,
|
||||
"services": [
|
||||
"nginx"
|
||||
],
|
||||
|
|
|
@ -40,10 +40,10 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
ynh_backup --src_path="$final_path"
|
||||
|
||||
# Config
|
||||
ynh_backup --src_path="/etc/vikunja/config.yml"
|
||||
ynh_backup --src_path="/etc/$app/config.yml"
|
||||
|
||||
# Backend
|
||||
ynh_backup --src_path="/opt/vikunja"
|
||||
ynh_backup --src_path="/opt/$app"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
|
|
|
@ -117,9 +117,9 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|||
domain="$new_domain"
|
||||
path="$new_path"
|
||||
redis_db=$(ynh_redis_get_free_db)
|
||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/$app/config.yml"
|
||||
|
||||
chmod 600 "/etc/vikunja/config.yml"
|
||||
chmod 600 "/etc/$app/config.yml"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -98,7 +98,7 @@ ynh_system_user_delete --username=$app
|
|||
ynh_script_progression --message="Removing backend..." --weight=1
|
||||
|
||||
# Delete /opt/vikunja
|
||||
ynh_secure_remove --file="/opt/vikunja"
|
||||
ynh_secure_remove --file="/opt/$app"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
|
@ -66,12 +66,12 @@ chmod -R o-rwx "$final_path"
|
|||
chown -R $app:www-data "$final_path"
|
||||
|
||||
# Config
|
||||
ynh_restore_file --origin_path="/etc/vikunja/config.yml"
|
||||
ynh_restore_file --origin_path="/etc/$app/config.yml"
|
||||
|
||||
# Backend
|
||||
ynh_restore_file --origin_path="/opt/vikunja"
|
||||
chmod +x "/opt/vikunja/vikunja"
|
||||
chown -R $app:www-data "/opt/vikunja/files"
|
||||
ynh_restore_file --origin_path="/opt/$app"
|
||||
chmod +x "/opt/$app/vikunja"
|
||||
chown -R $app:www-data "/opt/$app/files"
|
||||
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
|
|
Loading…
Reference in a new issue