mirror of
https://github.com/YunoHost-Apps/planka_ynh.git
synced 2024-09-03 20:06:00 +02:00
cleaning
This commit is contained in:
parent
7f3113eab0
commit
8cfd8042c6
5 changed files with 1 additions and 24 deletions
|
@ -19,7 +19,7 @@ admindoc = "https://docs.planka.cloud/docs/intro/"
|
||||||
code = "https://github.com/plankanban/planka"
|
code = "https://github.com/plankanban/planka"
|
||||||
|
|
||||||
[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
|
||||||
|
|
|
@ -17,17 +17,9 @@ ynh_backup "$install_dir"
|
||||||
|
|
||||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP FAIL2BAN CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup "/etc/fail2ban/jail.d/$app.conf"
|
ynh_backup "/etc/fail2ban/jail.d/$app.conf"
|
||||||
ynh_backup "/etc/fail2ban/filter.d/$app.conf"
|
ynh_backup "/etc/fail2ban/filter.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup "/etc/systemd/system/$app.service"
|
ynh_backup "/etc/systemd/system/$app.service"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -34,8 +34,6 @@ ynh_script_progression "Setting up source files..."
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir"
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -56,16 +54,12 @@ ynh_script_progression "Adding $app's configuration..."
|
||||||
|
|
||||||
ynh_config_add --template=".env" --destination="$install_dir/.env"
|
ynh_config_add --template=".env" --destination="$install_dir/.env"
|
||||||
|
|
||||||
#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 400 "$install_dir/.env"
|
|
||||||
#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 $app:$app "$install_dir/.env"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL PLANKA
|
# INSTALL PLANKA
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Installing $app..."
|
ynh_script_progression "Installing $app..."
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
|
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm install
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm install
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm run db:init
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm run db:init
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
@ -11,8 +10,6 @@ ynh_script_progression "Restoring the app main directory..."
|
||||||
|
|
||||||
ynh_restore "$install_dir"
|
ynh_restore "$install_dir"
|
||||||
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir"
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -23,8 +23,6 @@ ynh_script_progression "Upgrading source files..."
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep=".env"
|
ynh_setup_source --dest_dir="$install_dir" --keep=".env"
|
||||||
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
|
|
||||||
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir"
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -47,16 +45,12 @@ ynh_script_progression "Updating configuration..."
|
||||||
|
|
||||||
ynh_config_add --template=".env" --destination="$install_dir/.env"
|
ynh_config_add --template=".env" --destination="$install_dir/.env"
|
||||||
|
|
||||||
#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 400 "$install_dir/.env"
|
|
||||||
#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 $app:$app "$install_dir/.env"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL PLANKA
|
# INSTALL PLANKA
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Installing $app..."
|
ynh_script_progression "Installing $app..."
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
|
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm install
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm install
|
||||||
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm run db:init
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH npm run db:init
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue