1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hat_ynh.git synced 2024-09-03 19:16:04 +02:00
This commit is contained in:
ericgaspar 2023-05-17 06:54:39 +02:00
parent 4341b6516f
commit 714792e9e0
5 changed files with 2 additions and 46 deletions

View file

@ -1,24 +0,0 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/path"
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1
setup_public=1
upgrade=1
#upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=0
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&is_public=1&language=fr&admin=USER&password=pass&port=666&

View file

@ -6,15 +6,10 @@ After=network.target
Type=simple
User=__APP__
Group=__APP__
#Environment="NODE_PORT=__PORT__"
WorkingDirectory=__INSTALL_DIR__/
Environment=PATH=__ENV_PATH__
#Environment=NODE_ENV=production
ExecStart=__YNH_NPM__ run next start -p __PORT__
#ExecStart=__YNH_NPM__ run start
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these
# .. but this should be a good baseline

View file

@ -17,7 +17,7 @@ admindoc = "https://hat.sh/about/"
code = "https://github.com/sh-dv/hat.sh"
[integration]
yunohost = ">= 11.1.18"
yunohost = ">= 11.1.19"
architectures = "all"
multi_instance = false
ldap = false

View file

@ -22,27 +22,12 @@ then
yunohost service remove $app
fi
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
# Remove the dedicated systemd config
ynh_remove_systemd_config
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=5
# Remove NodeJS
ynh_remove_nodejs

View file

@ -36,7 +36,7 @@ then
ynh_setup_source --dest_dir="$install_dir" --keep=".env"
fi
chmod 750 "$install_dir"chmod -R o-rwx "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================