Option to install extra packages
This commit is contained in:
parent
e75e9333fe
commit
e1574b49c1
Binary file not shown.
|
@ -47,6 +47,7 @@ your_name=''
|
|||
your_email=''
|
||||
SHOW_ON_ABOUT=1
|
||||
database_type=''
|
||||
debian_packages=
|
||||
|
||||
function show_help {
|
||||
echo ''
|
||||
|
@ -67,6 +68,7 @@ function show_help {
|
|||
echo $' --nodeapp [package] Specify a nodejs package to install'
|
||||
echo $' -o --onion [yes|no] Is this app only available on an onion address?'
|
||||
echo $' -p --php [yes|no] Is this a PHP app?'
|
||||
echo $' --packages [list of deb package names] Debian packages to be installed'
|
||||
echo $' -s --daemon [yes|no] Add a daemon'
|
||||
echo $' -d --database [mariadb|postgresql|mongodb] Type of database'
|
||||
echo $' -w --web [yes|no] Whether there is a web user interface (default is yes)'
|
||||
|
@ -152,6 +154,10 @@ do
|
|||
shift
|
||||
app_dir="$1"
|
||||
;;
|
||||
--packages|--package)
|
||||
shift
|
||||
debian_packages="$1"
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
|
@ -713,6 +719,10 @@ fi
|
|||
echo '}'
|
||||
echo ''
|
||||
echo "function install_${app_name} {"
|
||||
if [ "$debian_packages" ]; then
|
||||
echo " apt-get -qy install ${debian_packages}"
|
||||
echo ''
|
||||
fi
|
||||
if [[ "$database_type" == "mariadb" || "$database_type" == "mysql" ]]; then
|
||||
echo ' install_mariadb'
|
||||
echo ''
|
||||
|
|
Loading…
Reference in New Issue