mirror of
https://github.com/YunoHost-Apps/gemserv_ynh.git
synced 2024-09-03 18:36:27 +02:00
commit
d743592285
6 changed files with 12 additions and 10 deletions
|
@ -28,7 +28,7 @@ A gemini server written in rust.
|
||||||
- Reload config on SIGHUP
|
- Reload config on SIGHUP
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.6.6~ynh3
|
**Shipped version:** 0.6.6~ynh4
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.
|
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.
|
||||||
|
|
|
@ -28,7 +28,7 @@ A gemini server written in rust.
|
||||||
- Reload config on SIGHUP
|
- Reload config on SIGHUP
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.6.6~ynh3
|
**Version incluse :** 0.6.6~ynh4
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.
|
Please note that Gemserv uses the TCP port 1965, so you can't use it for anything else.
|
||||||
|
|
|
@ -7,7 +7,9 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
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 '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'
|
ExecStartPre=-/bin/bash -c 'cat /etc/__APP__/config.d/*.toml >> /etc/__APP__/config.toml'
|
||||||
ExecStart=__FINALPATH__/live/__APP__ /etc/__APP__/config.toml
|
ExecStart=__FINALPATH__/live/__APP__ /etc/__APP__/config.toml
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "A gemini server written in rust."
|
"en": "A gemini server written in rust."
|
||||||
},
|
},
|
||||||
"version": "0.6.6~ynh3",
|
"version": "0.6.6~ynh4",
|
||||||
"url": "https://git.sr.ht/~int80h/gemserv/",
|
"url": "https://git.sr.ht/~int80h/gemserv/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -83,9 +83,9 @@ chown -R $app:$app "$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# 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
|
# Install rustup with the toolchain needed by Gemserv
|
||||||
pushd "$final_path"
|
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"
|
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"
|
chown $app:$app "/etc/$app/config.d/server.toml.head"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -100,9 +100,9 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
#=================================================
|
||||||
# MAKE INSTALL
|
# BUILD APP
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Making install..."
|
ynh_script_progression --message="Building app..."
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
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"
|
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"
|
chown $app:$app "/etc/$app/config.d/server.toml.head"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue