1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotify_ynh.git synced 2024-09-03 20:36:26 +02:00
This commit is contained in:
Éric Gaspar 2023-11-11 23:10:34 +01:00
parent c1a9e177b2
commit 4c2c035303
6 changed files with 9 additions and 10 deletions

View file

@ -1,4 +1,2 @@
## Configuration
How to configure this app:
> Edit `config.yml` file via SSH.

View file

@ -1,4 +1,2 @@
## Configuration
Pour configurer Gotify :
> Éditer le fichier `config.yml` avec SSH.

View file

@ -19,8 +19,11 @@ code = "https://github.com/gotify/server"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"

View file

@ -30,7 +30,7 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add $app
yunohost service add $app --description="Simple server for sending and receiving messages" --log="/var/log/$app/$app.log"
#=================================================
# SPECIFIC SETUP
@ -39,7 +39,7 @@ yunohost service add $app
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.yml" --destination="$install_dir/config.yml"
ynh_add_config --template="config.yml" --destination="$install_dir/config.yml"
chmod 400 "$install_dir/config.yml"
chown $app:$app "$install_dir/config.yml"

View file

@ -37,7 +37,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
yunohost service add $app
yunohost service add $app --description="Simple server for sending and receiving messages" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -33,7 +33,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --keep="config.yml"
fi
chmod -R o-rwx "$install_dir"
@ -46,7 +46,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/config.yml" --destination="$install_dir/config.yml"
ynh_add_config --template="config.yml" --destination="$install_dir/config.yml"
chmod 400 "$install_dir/config.yml"
chown $app:$app "$install_dir/config.yml"
@ -62,7 +62,7 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add $app
yunohost service add $app --description="Simple server for sending and receiving messages" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE