1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gemserv_ynh.git synced 2024-09-03 18:36:27 +02:00

Merge pull request #20 from YunoHost-Apps/testing

Testing
This commit is contained in:
yalh76 2022-08-03 01:57:59 +02:00 committed by GitHub
commit 759e307736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 10 deletions

View file

@ -28,7 +28,7 @@ A gemini server written in rust.
- Reload config on SIGHUP
**Shipped version:** 0.6.6~ynh3
**Shipped version:** 0.6.6~ynh4
## Disclaimers / important information
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.

View file

@ -28,7 +28,7 @@ A gemini server written in rust.
- Reload config on SIGHUP
**Version incluse :** 0.6.6~ynh3
**Version incluse :** 0.6.6~ynh4
## Avertissements / informations importantes
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.

View file

@ -7,7 +7,9 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStartPre=-/bin/bash -c 'chown -R __APP__:__APP__ /etc/__APP__/'
ExecStartPre=-+/bin/bash -c 'chown -R __APP__:__APP__ /etc/__APP__/'
ExecStartPre=-+/bin/bash -c 'chmod 600 /etc/__APP__/config.toml'
ExecStartPre=-+/bin/bash -c 'chmod 600 /etc/__APP__/config.d/server.toml.head'
ExecStartPre=-/bin/bash -c 'cp /etc/__APP__/config.d/server.toml.head /etc/__APP__/config.toml'
ExecStartPre=-/bin/bash -c 'cat /etc/__APP__/config.d/*.toml >> /etc/__APP__/config.toml'
ExecStart=__FINALPATH__/live/__APP__ /etc/__APP__/config.toml

View file

@ -5,7 +5,7 @@
"description": {
"en": "A gemini server written in rust."
},
"version": "0.6.6~ynh3",
"version": "0.6.6~ynh4",
"url": "https://git.sr.ht/~int80h/gemserv/",
"upstream": {
"license": "MIT",

View file

@ -83,9 +83,9 @@ chown -R $app:$app "$final_path"
#=================================================
# SPECIFIC SETUP
#=================================================
# MAKE INSTALL
# BUILD APP
#=================================================
ynh_script_progression --message="Making install..."
ynh_script_progression --message="Building app..."
# Install rustup with the toolchain needed by Gemserv
pushd "$final_path"
@ -120,7 +120,7 @@ chown -R $app:$app "/etc/$app"
ynh_add_config --template="server.toml" --destination="/etc/$app/config.d/server.toml.head"
chmod 400 "/etc/$app/config.d/server.toml.head"
chmod 600 "/etc/$app/config.d/server.toml.head"
chown $app:$app "/etc/$app/config.d/server.toml.head"
#=================================================

View file

@ -100,9 +100,9 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
# SPECIFIC UPGRADE
#=================================================
# MAKE INSTALL
# BUILD APP
#=================================================
ynh_script_progression --message="Making install..."
ynh_script_progression --message="Building app..."
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
@ -140,7 +140,7 @@ chown -R $app:$app "/etc/$app"
ynh_add_config --template="server.toml" --destination="/etc/$app/config.d/server.toml.head"
chmod 400 "/etc/$app/config.d/server.toml.head"
chmod 600 "/etc/$app/config.d/server.toml.head"
chown $app:$app "/etc/$app/config.d/server.toml.head"
#=================================================