1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/turtl_ynh.git synced 2024-09-03 20:26:35 +02:00
This commit is contained in:
ericgaspar 2021-11-25 13:18:53 +01:00
parent c0ab05e317
commit 9a5d9c0cf3
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 4 additions and 8 deletions

View file

@ -2,7 +2,7 @@
server:
# Per default, turtl will listen on all IP addresses
# You can choose the IP it will use with this parameter
host: _IP_SERVER__
host: __PUBLIC_IP4__
port: __PORT__
db:

View file

@ -9,10 +9,10 @@ User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
Environment="PATH=__ENV_PATH__"
ExecStart=__YNH_NODE__ __FINALPATH__/entrypoint.sh
ExecStart=__YNH_NODE__ __FINALPATH__/server.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=turtl
SyslogIdentifier=__APP__
Restart=always
RestartSec=10
StartLimitInterval=900

View file

@ -103,7 +103,6 @@ chown $app:$app $final_path/plugins
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x $final_path/entrypoint.sh
#=================================================
# NGINX CONFIGURATION
@ -144,7 +143,7 @@ chown -R $app:www-data "$datadir"
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ip_server="$(curl -s ip.yunohost.org)" || true
public_ip4="$(curl -s ip.yunohost.org)" || true
ynh_add_config --template="../conf/config.yaml.default" --destination="$final_path/config/config.yaml"
chmod 400 "$final_path/config/config.yaml"

View file

@ -56,9 +56,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
### If nobody installed your app before 4.1,
### then you may safely remove these lines
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all