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:
parent
74ba8de99d
commit
913169bf67
3 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue