1
0
Fork 0
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:
Selamanse 2017-07-18 13:03:45 +02:00
parent d2572be187
commit fb882baab5
3 changed files with 47 additions and 4 deletions

View file

@ -1,8 +1,33 @@
#!/bin/bash
#Retrieve arguments
domain=$1
is_public=$2
#=================================================
# GENERIC START
#=================================================
# 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
NODE_VERSION=4.7.1

View file

@ -1,5 +1,14 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
domain=$(sudo yunohost app setting rocketchat domain)
sudo rm -rf /var/www/rocketchat
@ -9,4 +18,3 @@ sudo rm -Rf /var/log/rocketchat/
sudo systemctl stop Rocketchat.service
sudo rm /etc/systemd/system/Rocketchat.service
sudo systemctl restart nginx

View file

@ -1,4 +1,14 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
ROCKETCHAT_VERSION=0.57.2
NODE_VERSION=4.7.1