1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zeronet_ynh.git synced 2024-09-03 17:46:12 +02:00

Fixes restore script

Now makes sure dependencies are installed
This commit is contained in:
whypsi 2017-03-05 17:40:21 +01:00
parent 74ba8de99d
commit 913169bf67
3 changed files with 14 additions and 4 deletions

View file

@ -2,6 +2,10 @@
set -eu
install_dependencies() {
sudo apt-get install --quiet --yes python-msgpack python-gevent
}
app_config_get() {
local app_config=$1
local attribute=$2

View file

@ -6,10 +6,6 @@ set -eu
source /usr/share/yunohost/helpers
source functions.sh
install_dependencies() {
sudo apt-get install --yes python-msgpack python-gevent
}
nginx_config_file() {
local app=$1
local domain=$2

View file

@ -3,6 +3,14 @@ set -eu
source /usr/share/yunohost/helpers
# TODO: enable with fix of https://github.com/YunoHost/yunohost/pull/246
# source .hfunctions
# TODO: remove with fix of https://github.com/YunoHost/yunohost/pull/246
install_dependencies() {
sudo apt-get install --quiet --yes python-msgpack python-gevent
}
main() {
local app=$YNH_APP_INSTANCE_NAME
local deploy_path=$(ynh_app_setting_get $app deploy_path)
@ -15,6 +23,8 @@ main() {
local url=$(ynh_app_setting_get $app url)
install_dependencies
sudo yunohost app checkurl $url -a $app
sudo cp -a "./sources" $deploy_path