mirror of
https://github.com/YunoHost-Apps/code-server_ynh.git
synced 2024-09-03 18:16:28 +02:00
commit
ec76534c19
5 changed files with 13 additions and 36 deletions
|
@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
Run VS Code on your server and access it in the browser
|
Run VS Code on your server and access it in the browser
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 4.16.1~ynh2
|
**Shipped version:** 4.17.0~ynh2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
Run VS Code on your server and access it in the browser
|
Run VS Code on your server and access it in the browser
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 4.16.1~ynh2
|
**Version incluse :** 4.17.0~ynh2
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "code-server"
|
||||||
description.en = "Run VS Code on your server and access it in the browser"
|
description.en = "Run VS Code on your server and access it in the browser"
|
||||||
description.fr = "Lancez VS Code sur votre serveur et accédez-y depuis votre navigateur"
|
description.fr = "Lancez VS Code sur votre serveur et accédez-y depuis votre navigateur"
|
||||||
|
|
||||||
version = "4.16.1~ynh2"
|
version = "4.17.0~ynh2"
|
||||||
|
|
||||||
maintainers = ["Tagada"]
|
maintainers = ["Tagada"]
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ userdoc = "https://coder.com/docs/code-server/latest/FAQ"
|
||||||
code = "https://github.com/coder/code-server"
|
code = "https://github.com/coder/code-server"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.17"
|
yunohost = ">= 11.2"
|
||||||
architectures = ["amd64", "arm64", "armhf"]
|
architectures = ["amd64", "arm64", "armhf"]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -29,19 +29,18 @@ ram.runtime = "100M"
|
||||||
[install]
|
[install]
|
||||||
[install.domain]
|
[install.domain]
|
||||||
type = "domain"
|
type = "domain"
|
||||||
full_domain = true
|
|
||||||
|
|
||||||
[install.admin]
|
[install.admin]
|
||||||
type = "user"
|
type = "user"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
amd64.url = "https://github.com/coder/code-server/releases/download/v4.16.1/code-server-4.16.1-linux-amd64.tar.gz"
|
amd64.url = "https://github.com/coder/code-server/releases/download/v4.17.0/code-server-4.17.0-linux-amd64.tar.gz"
|
||||||
amd64.sha256 = "e10bc642be9fe8a802f556737b1bbb910ef818979a35034b092c85e62a42d1a7"
|
amd64.sha256 = "12ba07cee7b6c5bbd172f8bac52bb01029f4d291cb22615d1ec92b9760d6546d"
|
||||||
arm64.url = "https://github.com/coder/code-server/releases/download/v4.16.1/code-server-4.16.1-linux-arm64.tar.gz"
|
arm64.url = "https://github.com/coder/code-server/releases/download/v4.17.0/code-server-4.17.0-linux-arm64.tar.gz"
|
||||||
arm64.sha256 = "a256429887531d855baaa6b14b25906f69fa4b4a977b1ae0def001016fb37b81"
|
arm64.sha256 = "4c71fc2660f4f3f580f8ba1a6858a8d5cf99e0805d27b5e7db79672c5777d967"
|
||||||
armhf.url = "https://github.com/coder/code-server/releases/download/v4.16.1/code-server-4.16.1-linux-armv7l.tar.gz"
|
armhf.url = "https://github.com/coder/code-server/releases/download/v4.17.0/code-server-4.17.0-linux-armv7l.tar.gz"
|
||||||
armhf.sha256 = "38081417b8e10160f4c54aea93b24faeeb1bafbd4e41de021fd78a673f09daa6"
|
armhf.sha256 = "0a8755393281ecb82ebbf6344b0e2ea3b6dee3024457d1d6a28489d8a8eeb3f6"
|
||||||
|
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
autoupdate.asset.arm64 = "code-server-.*-linux-arm64.tar.gz"
|
autoupdate.asset.arm64 = "code-server-.*-linux-arm64.tar.gz"
|
||||||
|
|
|
@ -46,13 +46,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
yunohost service add $app --description="VS Code Server" --log="/var/log/$app/$app.log"
|
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"
|
ynh_permission_update --permission="main" --add="$admin"
|
||||||
|
|
||||||
chown -R $admin:$admin "$data_dir"
|
chown -R $admin:$admin "$data_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -82,14 +82,6 @@ chmod -R o-rwx "$install_dir"
|
||||||
chown -R root:$admin "$install_dir"
|
chown -R root:$admin "$install_dir"
|
||||||
chmod +x "$install_dir/bin/code-server"
|
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
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -111,24 +103,15 @@ chown $admin:$admin "$install_dir/config.yaml" "$install_dir/code-server.env"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||||
|
|
||||||
|
# Create a dedicated NGINX config
|
||||||
|
ynh_add_nginx_config
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_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)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
ynh_use_logrotate --non-append
|
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"
|
yunohost service add $app --description="VS Code Server" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue