Upload full Albumik YunoHost package

This commit is contained in:
adminsopel
2026-05-01 09:06:44 +02:00
parent 2145989988
commit f8beabe293
16 changed files with 1690 additions and 0 deletions

20
scripts/remove Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -euo pipefail
source ./scripts/_common.sh
domain=$(yunohost app setting "$app" domain 2>/dev/null || echo "")
systemctl disable --now "$app" 2>/dev/null || true
rm -f "$service_file"
systemctl daemon-reload || true
if [ -n "$domain" ]; then
rm -f "/etc/nginx/conf.d/$domain.d/$app.conf"
nginx -t && systemctl reload nginx || true
fi
rm -rf "$install_dir" "$config_dir"
# Dane użytkownika zostawiamy bezpiecznie. Usuń ręcznie, jeśli naprawdę chcesz:
# rm -rf "$data_dir"
echo "Albumik removed. Data left in $data_dir"