mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Installing buster if needed
This commit is contained in:
parent
10c69a7b3b
commit
ae27e53f82
3 changed files with 9 additions and 8 deletions
|
@ -8,18 +8,18 @@
|
||||||
public_key="dummy public key"
|
public_key="dummy public key"
|
||||||
is_public=1
|
is_public=1
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=0
|
pkg_linter=1
|
||||||
setup_sub_dir=1
|
setup_sub_dir=1
|
||||||
setup_root=0
|
setup_root=1
|
||||||
setup_nourl=0
|
setup_nourl=0
|
||||||
setup_private=0
|
setup_private=0
|
||||||
setup_public=0
|
setup_public=1
|
||||||
upgrade=0
|
upgrade=0
|
||||||
upgrade=0 from_commit=CommitHash
|
upgrade=0 from_commit=CommitHash
|
||||||
backup_restore=0
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
port_already_use=0 (8083)
|
port_already_use=1 (8083)
|
||||||
change_url=0
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=ger@shared.collin.best
|
Email=ger@shared.collin.best
|
||||||
Notification=Down
|
Notification=Down
|
||||||
|
|
|
@ -111,7 +111,7 @@ PORT_LIST=($port_ide $port_preview $port_project $port_data)
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=1
|
ynh_script_progression --message="Installing dependencies..." --weight=1
|
||||||
|
|
||||||
# Install the required version of Java
|
# Install the required version of Java
|
||||||
# ynh_install_java --java_version=$java_version --jdk_type=jre
|
ynh_install_java --java_version=$java_version --jdk_type=jre
|
||||||
|
|
||||||
### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
|
### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
|
||||||
### Those deb packages will be installed as dependencies of this package.
|
### Those deb packages will be installed as dependencies of this package.
|
||||||
|
|
|
@ -315,7 +315,8 @@ ynh_install_mongo() {
|
||||||
ynh_print_info --message="Installing MongoDB Community Edition ..."
|
ynh_print_info --message="Installing MongoDB Community Edition ..."
|
||||||
# Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)
|
# Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)
|
||||||
local mongo_debian_release=$(ynh_get_debian_release)
|
local mongo_debian_release=$(ynh_get_debian_release)
|
||||||
if [[ ""$(cat /proc/cpuinfo) == *"avx"* && "$mongo_debian_release" != "buster" ]]; then
|
|
||||||
|
if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_debian_release" != "buster" ]]; then
|
||||||
mongo_debian_release="buster"
|
mongo_debian_release="buster"
|
||||||
ynh_print_warn --message="Installing Mongo buster version to support your cpu."
|
ynh_print_warn --message="Installing Mongo buster version to support your cpu."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue