1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiddlywiki_ynh.git synced 2024-09-03 20:26:34 +02:00
This commit is contained in:
Éric Gaspar 2024-06-22 13:56:53 +02:00
parent cebf8096e9
commit 4b422d2ca6
5 changed files with 1 additions and 10 deletions

View file

@ -18,7 +18,7 @@ code = "https://github.com/Jermolene/TiddlyWiki5"
fund = "https://opencollective.com/tiddlywiki"
[integration]
yunohost = ">= 11.2"
yunohost = ">= 11.2.15"
helpers_version = "2.1"
architectures = "all"
multi_instance = true

View file

@ -1,6 +1,5 @@
#!/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 /usr/share/yunohost/helpers

View file

@ -15,7 +15,6 @@ ynh_nodejs_install
#=================================================
ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
@ -26,10 +25,8 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression "Adding system configurations related to $app..."
# Create a dedicated NGINX config
ynh_config_add_nginx
# Create a dedicated systemd config
ynh_config_add_systemd
yunohost service add $app --description="A non-linear personal web notebook" --log="/var/log/$app/$app.log"

View file

@ -7,21 +7,17 @@ source /usr/share/yunohost/helpers
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
# REMOVE SYSTEMD SERVICE
#=================================================
ynh_script_progression "Removing system configurations related to $app..."
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_hide_warnings yunohost service status $app >/dev/null
then
ynh_script_progression "Removing $app service integration..."
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_config_remove_systemd
# Remove the dedicated NGINX config
ynh_config_remove_nginx
ynh_nodejs_remove

View file

@ -30,7 +30,6 @@ chown -R $app:www-data "$data_dir"
#=================================================
ynh_script_progression "Reinstalling dependencies..."
# Install Nodejs
ynh_nodejs_install
#=================================================