mirror of
https://github.com/YunoHost-Apps/veloren_ynh.git
synced 2024-09-03 17:46:10 +02:00
Merge c74b5562ad
into aee92952ae
This commit is contained in:
commit
ac0b70b619
10 changed files with 84 additions and 72 deletions
32
README.md
32
README.md
|
@ -5,7 +5,8 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Veloren server for YunoHost
|
# Veloren server for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/veloren)  
|
[](https://dash.yunohost.org/appci/app/veloren)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=veloren)
|
[](https://install-app.yunohost.org/?app=veloren)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -15,43 +16,44 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Multiplayer voxel RPG inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft
|
Multiplayer voxel RPG
|
||||||
|
|
||||||
**Shipped version:** 0.10.0~ynh1
|
**Shipped version:** 0.11.0~ynh1
|
||||||
|
|
||||||
**Demo:** server.veloren.net:14004
|
**Demo:** server.veloren.net:14004
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
Veloren is in pre-alpha, il y aura des bugs.
|
Veloren is in pre-alpha, il y aura des bugs.
|
||||||
|
|
||||||
This package provides the last "release" version of Veloren, which is older than that of the official server. You will need to download the corresponding version of the client:
|
This package provides the last "release" version of Veloren, which is older than that of the official server. You will need to download the corresponding version of the client:
|
||||||
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=windows)
|
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=windows)
|
||||||
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=linux)
|
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=linux)
|
||||||
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=macos)
|
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=macos)
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://veloren.net/
|
* Official app website: <https://veloren.net/>
|
||||||
* Official user documentation: https://book.veloren.net/players/
|
* Official user documentation: <https://book.veloren.net/players/>
|
||||||
* Official admin documentation: https://book.veloren.net/players/hosting-a-server.html
|
* Official admin documentation: <https://book.veloren.net/players/hosting-a-server.html>
|
||||||
* Upstream app code repository: https://gitlab.com/veloren/veloren
|
* Upstream app code repository: <https://gitlab.com/veloren/veloren>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_veloren
|
* YunoHost documentation for this app: <https://yunohost.org/app_veloren>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/veloren_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/veloren_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/veloren_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/veloren_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade veloren -u https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
sudo yunohost app upgrade veloren -u https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||||
|
|
46
README_fr.md
46
README_fr.md
|
@ -1,53 +1,59 @@
|
||||||
|
<!--
|
||||||
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
|
It shall NOT be edited by hand.
|
||||||
|
-->
|
||||||
|
|
||||||
# Veloren server pour YunoHost
|
# Veloren server pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/veloren)  
|
[](https://dash.yunohost.org/appci/app/veloren)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=veloren)
|
[](https://install-app.yunohost.org/?app=veloren)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Veloren server rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d’installer Veloren server rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
||||||
|
|
||||||
## Vue d'ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
RPG voxel multijoueur inspiré de jeux tels que Cube World, Legend of Zelda : Breath of the Wild, Dwarf Fortress et Minecraft
|
RPG voxel multijoueur
|
||||||
|
|
||||||
**Version incluse :** 0.10.0~ynh1
|
**Version incluse :** 0.11.0~ynh1
|
||||||
|
|
||||||
**Démo :** server.veloren.net:14004
|
**Démo :** server.veloren.net:14004
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d’écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
Veloren est en pre-alpha, il y aura des bugs.
|
Veloren est en pre-alpha, il y aura des bugs.
|
||||||
|
|
||||||
Ce paquet fournit la dernière version "release" de Veloren, qui est plus ancienne que celle du serveur officiel. Il vous faudra télécharger la version correspondante du client:
|
Ce paquet fournit la dernière version "release" de Veloren, qui est plus ancienne que celle du serveur officiel. Il vous faudra télécharger la version correspondante du client:
|
||||||
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=windows)
|
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=windows)
|
||||||
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=linux)
|
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=linux)
|
||||||
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=macos)
|
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=macos)
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://veloren.net/
|
* Site officiel de l’app : <https://veloren.net/>
|
||||||
* Documentation officielle utilisateur : https://book.veloren.net/players/
|
* Documentation officielle utilisateur : <https://book.veloren.net/players/>
|
||||||
* Documentation officielle de l'admin : https://book.veloren.net/players/hosting-a-server.html
|
* Documentation officielle de l’admin : <https://book.veloren.net/players/hosting-a-server.html>
|
||||||
* Dépôt de code officiel de l'app : https://gitlab.com/veloren/veloren
|
* Dépôt de code officiel de l’app : <https://gitlab.com/veloren/veloren>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_veloren
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_veloren>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/veloren_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/veloren_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/veloren_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/veloren_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade veloren -u https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
sudo yunohost app upgrade veloren -u https://github.com/YunoHost-Apps/veloren_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://gitlab.com/veloren/veloren/-/archive/v0.10.0/veloren-v0.10.0.tar.gz
|
SOURCE_URL=https://gitlab.com/veloren/veloren/-/archive/v0.11.0/veloren-v0.11.0.tar.gz
|
||||||
SOURCE_SUM=8bda76af18db8553556cb09a4126bb9c4e0956bcf021fbb93c019de450c38016
|
SOURCE_SUM=a2a840fcbbafaaa429c8c2ffce56488de099ed71e310fcae6d56b927409d1f8f
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=veloren-v0.10.0.tar.gz
|
SOURCE_FILENAME=veloren-v0.11.0.tar.gz
|
||||||
SOURCE_EXTRACT=true
|
SOURCE_EXTRACT=true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Veloren is in pre-alpha, il y aura des bugs.
|
Veloren is in pre-alpha, il y aura des bugs.
|
||||||
|
|
||||||
This package provides the last "release" version of Veloren, which is older than that of the official server. You will need to download the corresponding version of the client:
|
This package provides the last "release" version of Veloren, which is older than that of the official server. You will need to download the corresponding version of the client:
|
||||||
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=windows)
|
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=windows)
|
||||||
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=linux)
|
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=linux)
|
||||||
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=macos)
|
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=macos)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Veloren est en pre-alpha, il y aura des bugs.
|
Veloren est en pre-alpha, il y aura des bugs.
|
||||||
|
|
||||||
Ce paquet fournit la dernière version "release" de Veloren, qui est plus ancienne que celle du serveur officiel. Il vous faudra télécharger la version correspondante du client:
|
Ce paquet fournit la dernière version "release" de Veloren, qui est plus ancienne que celle du serveur officiel. Il vous faudra télécharger la version correspondante du client:
|
||||||
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=windows)
|
* [Windows x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=windows)
|
||||||
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=linux)
|
* [Linux x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=linux)
|
||||||
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.10.0/download?job=macos)
|
* [MacOS x64](https://gitlab.com/veloren/veloren/-/jobs/artifacts/v0.11.0/download?job=macos)
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"id": "veloren",
|
"id": "veloren",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Multiplayer voxel RPG inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft",
|
"en": "Multiplayer voxel RPG",
|
||||||
"fr": "RPG voxel multijoueur inspiré de jeux tels que Cube World, Legend of Zelda : Breath of the Wild, Dwarf Fortress et Minecraft"
|
"fr": "RPG voxel multijoueur"
|
||||||
},
|
},
|
||||||
"version": "0.10.0~ynh1",
|
"version": "0.11.0~ynh1",
|
||||||
"url": "https://veloren.net",
|
"url": "https://veloren.net",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"email": "jules.bertholet@gmail.com"
|
"email": "jules.bertholet@gmail.com"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.1.3"
|
"yunohost": ">= 11.1.15"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [],
|
"services": [],
|
||||||
|
|
|
@ -50,6 +50,7 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
|
||||||
|
|
||||||
final_path=/opt/yunohost/$app
|
final_path=/opt/yunohost/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
data_path=/home/yunohost.app/$app
|
data_path=/home/yunohost.app/$app
|
||||||
test ! -e "$data_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$data_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
|
@ -101,7 +102,7 @@ ynh_exec_warn_less yunohost firewall allow --no-upnp Both $port
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=20
|
ynh_script_progression --message="Installing dependencies..." --weight=2
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
@ -116,7 +117,7 @@ ynh_system_user_create --username=$app --home_dir="$data_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=155
|
ynh_script_progression --message="Setting up source files..." --weight=10
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
ynh_app_setting_set --app=$app --key=data_path --value=$data_path
|
ynh_app_setting_set --app=$app --key=data_path --value=$data_path
|
||||||
|
@ -128,7 +129,7 @@ setup_source
|
||||||
#=================================================
|
#=================================================
|
||||||
# COMPILE SERVER
|
# COMPILE SERVER
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Compiling server..." --weight=135
|
ynh_script_progression --message="Compiling server..." --weight=10
|
||||||
|
|
||||||
compile_server
|
compile_server
|
||||||
|
|
||||||
|
@ -139,7 +140,7 @@ compile_server
|
||||||
map_generated=0
|
map_generated=0
|
||||||
|
|
||||||
if [ $generate_custom_world -eq 1 ]; then
|
if [ $generate_custom_world -eq 1 ]; then
|
||||||
ynh_script_progression --message="Generating custom world..." --weight=730
|
ynh_script_progression --message="Generating custom world..." --weight=10
|
||||||
|
|
||||||
generate_custom_world
|
generate_custom_world
|
||||||
fi
|
fi
|
||||||
|
@ -156,7 +157,7 @@ add_configuration_files
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --others_var="data_path"
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -178,7 +179,7 @@ yunohost service add $app --description="Veloren game server" --needs_exposed_po
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=35
|
ynh_script_progression --message="Starting a systemd service..." --weight=10
|
||||||
|
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
||||||
|
|
|
@ -34,7 +34,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# STOP AND REMOVE SERVICE
|
# STOP AND REMOVE SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=120
|
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=5
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
@ -42,7 +42,7 @@ ynh_remove_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=10
|
ynh_script_progression --message="Removing dependencies..." --weight=5
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
|
@ -50,7 +50,7 @@ ynh_remove_app_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE APP MAIN DIR
|
# REMOVE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing app main directory..." --weight=1
|
ynh_script_progression --message="Removing app main directory..." --weight=3
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file="$final_path"
|
ynh_secure_remove --file="$final_path"
|
||||||
|
@ -58,15 +58,18 @@ ynh_secure_remove --file="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE APP DATA DIR
|
# REMOVE APP DATA DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing app data directory..." --weight=1
|
|
||||||
|
|
||||||
# Remove the data directory securely
|
# Remove the data directory if --purge option is used
|
||||||
ynh_secure_remove --file="$data_path"
|
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Removing app data directory..." --weight=1
|
||||||
|
ynh_secure_remove --file="$datadir"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE LOGROTATE CONFIGURATION
|
# REMOVE LOGROTATE CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing logrotate configuration..." --weight=1
|
ynh_script_progression --message="Removing logrotate configuration..." --weight=5
|
||||||
|
|
||||||
# Remove the app-specific logrotate config
|
# Remove the app-specific logrotate config
|
||||||
ynh_remove_logrotate
|
ynh_remove_logrotate
|
||||||
|
@ -95,7 +98,7 @@ ynh_secure_remove --file="/var/log/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEDICATED USER
|
# REMOVE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing the dedicated system user..." --weight=1
|
ynh_script_progression --message="Removing the dedicated system user..." --weight=10
|
||||||
|
|
||||||
# Delete a system user
|
# Delete a system user
|
||||||
ynh_system_user_delete --username=$app
|
ynh_system_user_delete --username=$app
|
||||||
|
|
|
@ -52,7 +52,7 @@ ynh_system_user_create --username=$app --home_dir="$data_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=15
|
ynh_script_progression --message="Reinstalling dependencies..." --weight=6
|
||||||
|
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
@ -60,7 +60,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE APP MAIN DIR
|
# RESTORE THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the app main directory..." --weight=1
|
ynh_script_progression --message="Restoring the app main directory..." --weight=4
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ yunohost service add $app --description="Veloren game server" --needs_exposed_po
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
ynh_script_progression --message="Starting a systemd service..." --weight=10
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ ynh_system_user_create --username=$app --home_dir="$data_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=10
|
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=155
|
ynh_script_progression --message="Upgrading source files..." --weight=10
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
setup_source
|
setup_source
|
||||||
|
@ -81,7 +81,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# COMPILE SERVER
|
# COMPILE SERVER
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Compiling server..." --weight=135
|
ynh_script_progression --message="Compiling server..." --weight=10
|
||||||
|
|
||||||
compile_server
|
compile_server
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ compile_server
|
||||||
map_generated=0
|
map_generated=0
|
||||||
|
|
||||||
if [ $generate_custom_world -eq 1 ]; then
|
if [ $generate_custom_world -eq 1 ]; then
|
||||||
ynh_script_progression --message="Generating custom world..." --weight=730
|
ynh_script_progression --message="Generating custom world..." --weight=10
|
||||||
|
|
||||||
generate_custom_world
|
generate_custom_world
|
||||||
fi
|
fi
|
||||||
|
@ -109,7 +109,7 @@ add_configuration_files
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --others_var="data_path"
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -124,14 +124,14 @@ ynh_use_logrotate --non-append
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=10
|
||||||
|
|
||||||
yunohost service add $app --description="Veloren game server" --needs_exposed_ports "$port" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Veloren game server" --needs_exposed_ports "$port" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=35
|
ynh_script_progression --message="Starting a systemd service..." --weight=3
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action="start" --line_match="Server is ready to accept connections." --log_path="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue