1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gossa_ynh.git synced 2024-09-03 18:36:29 +02:00
This commit is contained in:
Éric Gaspar 2024-08-30 19:14:05 +02:00
parent bdb893f199
commit 6bca704a8d
6 changed files with 18 additions and 52 deletions

15
doc/DESCRIPTION_fr.md Executable file
View file

@ -0,0 +1,15 @@
Un serveur Web rapide et simple pour vos fichiers, sans dépendance et avec moins de 250 lignes de code, facile à réviser.
### Fonctionnalités
🔍 navigateur et gestionnaire de fichiers/répertoires
📩 téléchargeur par glisser-déposer
🥂 serveur statique golang rapide
💾 interface utilisateur Web des années 90 qui imprime en quelques millisecondes
📸 streaming vidéo et navigateur d'images
✍️ éditeur de notes simple
⌨️ navigation au clavier
🚀 base de code légère et sans dépendance
🔒 >95 % de couverture de test et builds reproductibles
💑 configuration multi-compte facile, mode lecture seule
✨ PWA activé

View file

@ -32,10 +32,6 @@ ynh_backup --src_path="$data_dir" --is_big
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================

View file

@ -26,7 +26,6 @@ chmod +x "$install_dir/gossa"
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=3
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_systemd_config

View file

@ -22,15 +22,8 @@ then
yunohost service remove $app
fi
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================

View file

@ -36,19 +36,9 @@ ynh_script_progression --message="Restoring the NGINX configuration..." --weight
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RESTORE SYSTEMD
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=5
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
#=================================================
@ -58,13 +48,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# GENERIC FINALIZATION
#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload
#=================================================

View file

@ -9,12 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -27,14 +21,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$install_dir
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -48,19 +38,9 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated nginx config
ynh_add_nginx_config
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=2
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description="Webserver for your files" --log="/var/log/$app/$app.log"
#=================================================