1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/code-server_ynh.git synced 2024-09-03 18:16:28 +02:00
This commit is contained in:
Éric Gaspar 2023-09-23 15:15:22 +02:00
parent df66e1008a
commit 59bd67384e
3 changed files with 3 additions and 29 deletions

View file

@ -60,7 +60,6 @@ chown root:$admin "$install_dir/code-server.env"
#=================================================
# SET PERMISSION FOR THE USER
#=================================================
ynh_permission_update --permission="main" --add="$admin"
chown -R $admin:$admin "$data_dir"

View file

@ -46,13 +46,6 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
yunohost service add $app --description="VS Code Server" --log="/var/log/$app/$app.log"
#=================================================
# SET PERMISSION FOR THE USER
#=================================================
ynh_permission_update --permission="main" --add="$admin"
chown -R $admin:$admin "$data_dir"
#=================================================
# START SYSTEMD SERVICE
#=================================================

View file

@ -82,14 +82,6 @@ chmod -R o-rwx "$install_dir"
chown -R root:$admin "$install_dir"
chmod +x "$install_dir/bin/code-server"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# UPDATE A CONFIG FILE
#=================================================
@ -111,30 +103,20 @@ chown $admin:$admin "$install_dir/config.yaml" "$install_dir/code-server.env"
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# GENERIC FINALIZATION
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="VS Code Server" --log="/var/log/$app/$app.log"
#=================================================
# SET PERMISSION FOR THE USER
#=================================================
ynh_permission_update --permission="main" --add="$admin"
chown -R $admin:$admin "$data_dir"