mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes deprecation in scripts
This commit is contained in:
parent
d2572be187
commit
fb882baab5
3 changed files with 47 additions and 4 deletions
|
@ -1,8 +1,33 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Retrieve arguments
|
#=================================================
|
||||||
domain=$1
|
# GENERIC START
|
||||||
is_public=$2
|
#=================================================
|
||||||
|
# IMPORT GENERIC HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
source _common.sh
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MANAGE SCRIPT FAILURE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
|
path_url=$YNH_APP_ARG_PATH
|
||||||
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
|
|
||||||
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
ROCKETCHAT_VERSION=0.57.2
|
ROCKETCHAT_VERSION=0.57.2
|
||||||
NODE_VERSION=4.7.1
|
NODE_VERSION=4.7.1
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# GENERIC START
|
||||||
|
#=================================================
|
||||||
|
# IMPORT GENERIC HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
source _common.sh
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
domain=$(sudo yunohost app setting rocketchat domain)
|
domain=$(sudo yunohost app setting rocketchat domain)
|
||||||
|
|
||||||
sudo rm -rf /var/www/rocketchat
|
sudo rm -rf /var/www/rocketchat
|
||||||
|
@ -9,4 +18,3 @@ sudo rm -Rf /var/log/rocketchat/
|
||||||
sudo systemctl stop Rocketchat.service
|
sudo systemctl stop Rocketchat.service
|
||||||
sudo rm /etc/systemd/system/Rocketchat.service
|
sudo rm /etc/systemd/system/Rocketchat.service
|
||||||
sudo systemctl restart nginx
|
sudo systemctl restart nginx
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# GENERIC START
|
||||||
|
#=================================================
|
||||||
|
# IMPORT GENERIC HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
source _common.sh
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
ROCKETCHAT_VERSION=0.57.2
|
ROCKETCHAT_VERSION=0.57.2
|
||||||
NODE_VERSION=4.7.1
|
NODE_VERSION=4.7.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue