nexcloud json files were added
This commit is contained in:
14
install.sh
14
install.sh
@@ -274,6 +274,19 @@ install_docker_deb() {
|
||||
|
||||
ask_additionals() {
|
||||
|
||||
echo "Please add directory path of service files: (/etc/user/config/services/)";
|
||||
read -r SERVICE_DIR;
|
||||
if [ "$SERVICE_DIR" == "" ] ; then
|
||||
SERVICE_DIR="/etc/user/config/services";
|
||||
else
|
||||
# while not an absolute path
|
||||
while [ ${SERVICE_DIR:0:1} != "/" ]; do
|
||||
echo "The path must be absolute, for example /etc/user/config/services/. Please type it again."
|
||||
read -r SERVICE_DIR;
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
echo "Do you want to install nextcloud? (Y/n)";
|
||||
read -r ANSWER;
|
||||
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ]; then
|
||||
@@ -546,6 +559,7 @@ if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ]; then
|
||||
# Run installer tool
|
||||
$SUDO_CMD docker run \
|
||||
--env ADDITIONALS=true \
|
||||
--env SERVICE_DIR=$SERVICE_DIR\
|
||||
$VAR_NEXTCLOUD \
|
||||
$VAR_BITWARDEN \
|
||||
--volume $HOME/.ssh/installer:/root/.ssh/id_rsa \
|
||||
|
Reference in New Issue
Block a user