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
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=/opt/vikunja
|
WorkingDirectory=/opt/__APP__
|
||||||
ExecStart=/opt/vikunja/vikunja
|
ExecStart=/opt/__APP__/vikunja
|
||||||
RestartSec=2s
|
RestartSec=2s
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 4.3.0"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx"
|
"nginx"
|
||||||
],
|
],
|
||||||
|
|
|
@ -40,10 +40,10 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
ynh_backup --src_path="$final_path"
|
ynh_backup --src_path="$final_path"
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
ynh_backup --src_path="/etc/vikunja/config.yml"
|
ynh_backup --src_path="/etc/$app/config.yml"
|
||||||
|
|
||||||
# Backend
|
# Backend
|
||||||
ynh_backup --src_path="/opt/vikunja"
|
ynh_backup --src_path="/opt/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
|
|
|
@ -117,9 +117,9 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
domain="$new_domain"
|
domain="$new_domain"
|
||||||
path="$new_path"
|
path="$new_path"
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
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
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -98,7 +98,7 @@ ynh_system_user_delete --username=$app
|
||||||
ynh_script_progression --message="Removing backend..." --weight=1
|
ynh_script_progression --message="Removing backend..." --weight=1
|
||||||
|
|
||||||
# Delete /opt/vikunja
|
# Delete /opt/vikunja
|
||||||
ynh_secure_remove --file="/opt/vikunja"
|
ynh_secure_remove --file="/opt/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -66,12 +66,12 @@ chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
ynh_restore_file --origin_path="/etc/vikunja/config.yml"
|
ynh_restore_file --origin_path="/etc/$app/config.yml"
|
||||||
|
|
||||||
# Backend
|
# Backend
|
||||||
ynh_restore_file --origin_path="/opt/vikunja"
|
ynh_restore_file --origin_path="/opt/$app"
|
||||||
chmod +x "/opt/vikunja/vikunja"
|
chmod +x "/opt/$app/vikunja"
|
||||||
chown -R $app:www-data "/opt/vikunja/files"
|
chown -R $app:www-data "/opt/$app/files"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue