mirror of
https://github.com/YunoHost-Apps/libreddit_ynh.git
synced 2024-09-03 19:36:05 +02:00
fix
This commit is contained in:
parent
5031bc93f2
commit
ca5a6e657c
4 changed files with 6 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
||||||
SOURCE_URL=https://github.com/spikecodes/libreddit/releases/download/v0.23.1/libreddit
|
SOURCE_URL=https://github.com/spikecodes/libreddit/releases/download/v0.28.0/libreddit
|
||||||
SOURCE_SUM=0d63bcb6e7195b350db61d6aa3aa2bd17f4ff4b9e5eef466fb9a7f65dadabde0
|
SOURCE_SUM=e5956240f7b566a4db571385a5e3d87c8fcc0a67e63b73d313a52d9fd40f1b39
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=libreddit
|
SOURCE_FILENAME=libreddit
|
||||||
SOURCE_EXTRACT=false
|
SOURCE_EXTRACT=false
|
|
@ -5,7 +5,7 @@ name = "Libreddit"
|
||||||
description.en = "Libre alternative to Reddit"
|
description.en = "Libre alternative to Reddit"
|
||||||
description.fr = "Alternative libre à Reddit"
|
description.fr = "Alternative libre à Reddit"
|
||||||
|
|
||||||
version = "0.23.1~ynh1"
|
version = "0.28.0~ynh1"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ demo = "https://libreddit.spike.codes/"
|
||||||
code = "https://github.com/spikecodes/libreddit"
|
code = "https://github.com/spikecodes/libreddit"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.0"
|
yunohost = ">= 11.1.6"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = "false"
|
ldap = "false"
|
||||||
|
@ -42,6 +42,6 @@ ram.runtime = "50M"
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
|
@ -17,8 +17,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x $install_dir/libreddit
|
chmod +x $install_dir/libreddit
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,6 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --keep="libreddit.conf"
|
ynh_setup_source --dest_dir="$install_dir" --keep="libreddit.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x $install_dir/libreddit
|
chmod +x $install_dir/libreddit
|
||||||
|
|
||||||
|
@ -81,13 +79,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RELOAD NGINX
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue