export virtualisation var
This commit is contained in:
parent
a0ee0ec724
commit
94188611cf
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
*~
|
||||
*.sw[op]
|
||||
.apps/
|
||||
.apps_git_clone_cache
|
||||
.spdx_licenses
|
||||
|
|
|
@ -92,7 +92,9 @@ ynh_script_progression --message="Checking virtualisation availability…" --wei
|
|||
if [ "$(which modprobe)" = "" ]
|
||||
then
|
||||
virtualisation=false
|
||||
export VIRTUALISATION=false
|
||||
else
|
||||
export VIRTUALISATION=false
|
||||
virtualisation=true
|
||||
fi
|
||||
ynh_app_setting_set --app=$app --key=virtualisation --value=$virtualisation
|
||||
|
|
|
@ -29,6 +29,7 @@ virtualisation=$(ynh_app_setting_get --app=$app --key=virtualisation)
|
|||
if [ "$virtualisation" = "true" ]
|
||||
then
|
||||
nbd_index=$(ynh_app_setting_get --app=$app --key=nbd_index)
|
||||
export VIRTUALISTATION=true
|
||||
fi
|
||||
#=================================================
|
||||
# REMOVE NODE CONFIGURATION
|
||||
|
|
|
@ -78,6 +78,7 @@ mkdir -p "$datadir/data"
|
|||
|
||||
if [ "$virtualisation" = "true" ]
|
||||
then
|
||||
export VIRTUALISATION=true
|
||||
# Define and install dependencies
|
||||
ynh_install_app_dependencies $pkg_dependencies_virtualisation
|
||||
# to be sure to not exceed size limit, i use a virtual disk with a fix size to have a max limit size.
|
||||
|
|
Loading…
Reference in New Issue
Block a user