mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
cleaning
This commit is contained in:
parent
c7783846e4
commit
7b3101ad4c
4 changed files with 10 additions and 18 deletions
|
@ -6,6 +6,7 @@ location __PATH__/ {
|
|||
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
|
@ -50,8 +50,8 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://framagit.org/fiat-tux/hat-softwares/lstu/-/archive/0.28-0/lstu-0.28-0.tar.bz2"
|
||||
sha256 = "8e7e818540ade44c7ed410b0ee25a0091b2cf56bc04bdaccdeb4e5c354635546"
|
||||
url = "https://framagit.org/fiat-tux/hat-softwares/lstu/-/archive/0.28-0/lstu-0.28-0.tar.gz"
|
||||
sha256 = "bb6531dbbc67800b818147fa0758b3581f4a8bf0267537f4ba598334c0c7ab3b"
|
||||
autoupdate.strategy = "latest_gitlab_release"
|
||||
|
||||
[resources.ports]
|
||||
|
|
|
@ -58,7 +58,7 @@ yunohost service add $app --log="/var/log/$app.log" --log="/var/www/$app/log/pro
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..."
|
||||
|
||||
ynh_add_config --template="../conf/lstu.conf.ldap" --destination="$install_dir/lstu.conf"
|
||||
ynh_add_config --template="lstu.conf.ldap" --destination="$install_dir/lstu.conf"
|
||||
|
||||
#=================================================
|
||||
# INSTALL LSTU
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="lstu.conf"
|
||||
fi
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="lstu.conf"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
@ -46,14 +36,15 @@ chown -R $app:www-data "$install_dir"
|
|||
#=================================================
|
||||
#ynh_script_progression --message="Updating a configuration file..."
|
||||
|
||||
#ynh_add_config --template="../conf/lstu.conf.ldap" --destination="$install_dir/lstu.conf"
|
||||
#ynh_add_config --template="lstu.conf.ldap" --destination="$install_dir/lstu.conf"
|
||||
|
||||
#=================================================
|
||||
# BUILD LSU
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building lstu..."
|
||||
ynh_script_progression --message="Building $app..."
|
||||
|
||||
pushd $install_dir
|
||||
ynh_secure_remove --file="$install_dir/local"
|
||||
carton install --deployment --without=sqlite --without=mysql
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in a new issue