mirror of
https://github.com/YunoHost-Apps/libreddit_ynh.git
synced 2024-09-03 19:36:05 +02:00
Merge ab5b0a4d5d
into 923c2fc744
This commit is contained in:
commit
6a95afdd8d
5 changed files with 8 additions and 8 deletions
|
@ -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.2.27"
|
yunohost = ">= 11.2.29"
|
||||||
helpers_version = "2.1"
|
helpers_version = "2.1"
|
||||||
architectures = ["amd64"]
|
architectures = ["amd64"]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
@ -43,7 +43,7 @@ ram.runtime = "50M"
|
||||||
extract = false
|
extract = false
|
||||||
in_subdir = false
|
in_subdir = false
|
||||||
rename = "redlib"
|
rename = "redlib"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
#autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ ynh_print_info "Declaring files to be backed up..."
|
||||||
ynh_backup "$install_dir"
|
ynh_backup "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
|
@ -38,7 +38,7 @@ chown $app:$app "$install_dir/redlib.conf"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
ynh_systemctl --service=$app --action="start" --log_path="systemd"
|
ynh_systemctl --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -24,14 +24,14 @@ systemctl enable $app.service --quiet
|
||||||
|
|
||||||
yunohost service add $app --description="Alternative to Reddit" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Alternative to Reddit" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
ynh_systemctl --service=$app --action="start" --log_path="systemd"
|
ynh_systemctl --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
|
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Reloading NGINX web server and $app's service..."
|
ynh_script_progression "Reloading NGINX web server and $app's service..."
|
||||||
|
|
||||||
ynh_systemctl --service=$app --action="start" --log_path="systemd"
|
ynh_systemctl --action="start" --log_path="systemd"
|
||||||
|
|
||||||
ynh_systemctl --service=nginx --action=reload
|
ynh_systemctl --service=nginx --action=reload
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Stopping $app's systemd service..."
|
ynh_script_progression "Stopping $app's systemd service..."
|
||||||
|
|
||||||
ynh_systemctl --service=$app --action="stop" --log_path="systemd"
|
ynh_systemctl --action="stop" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -45,7 +45,7 @@ chown $app:$app "$install_dir/redlib.conf"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Starting $app's systemd service..."
|
ynh_script_progression "Starting $app's systemd service..."
|
||||||
|
|
||||||
ynh_systemctl --service=$app --action="start" --log_path="systemd"
|
ynh_systemctl --action="start" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue