mirror of
https://github.com/YunoHost-Apps/borgwarehouse_ynh.git
synced 2024-09-03 18:16:17 +02:00
cleaning
This commit is contained in:
parent
f04fd3febe
commit
5e544c4a89
4 changed files with 5 additions and 17 deletions
|
@ -18,7 +18,7 @@ admindoc = "https://borgwarehouse.com/docs/admin-manual/debian-installation/"
|
||||||
code = "https://github.com/ravinou/borgwarehouse"
|
code = "https://github.com/ravinou/borgwarehouse"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.2.18"
|
yunohost = ">= 11.2.29"
|
||||||
helpers_version = "2.1"
|
helpers_version = "2.1"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|
|
@ -25,16 +25,8 @@ ynh_backup "/home/yunohost.app/$app/repos"
|
||||||
|
|
||||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup "/etc/systemd/system/$app.service"
|
ynh_backup "/etc/systemd/system/$app.service"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP VARIOUS FILES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup "/etc/cron.d/$app"
|
ynh_backup "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -55,8 +55,6 @@ ynh_config_add_nginx
|
||||||
ynh_config_add_systemd
|
ynh_config_add_systemd
|
||||||
|
|
||||||
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
||||||
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown root: "/etc/cron.d/$app"
|
|
||||||
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 644 "/etc/cron.d/$app"
|
|
||||||
|
|
||||||
yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
@ -79,8 +77,8 @@ ynh_script_progression "Installing $app..."
|
||||||
|
|
||||||
pushd /home/yunohost.app/$app/app
|
pushd /home/yunohost.app/$app/app
|
||||||
|
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm ci
|
ynh_hide_warnings ynh_exec_as_app npm ci
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH NODE_ENV=production npm run build
|
ynh_hide_warnings ynh_exec_as_app NODE_ENV=production npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -41,8 +41,6 @@ ynh_config_add_systemd
|
||||||
|
|
||||||
# Update cron in case of changes
|
# Update cron in case of changes
|
||||||
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
||||||
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown root: "/etc/cron.d/$app"
|
|
||||||
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 644 "/etc/cron.d/$app"
|
|
||||||
|
|
||||||
yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
@ -64,8 +62,8 @@ chown $app:$app "/home/yunohost.app/$app/app/.env.local"
|
||||||
|
|
||||||
pushd /home/yunohost.app/$app/app
|
pushd /home/yunohost.app/$app/app
|
||||||
|
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm ci
|
ynh_hide_warnings ynh_exec_as_app npm ci
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH NODE_ENV=production npm run build
|
ynh_hide_warnings ynh_exec_as_app NODE_ENV=production npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue