This commit is contained in:
40
index.html
40
index.html
@@ -161,6 +161,42 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mb-3">
|
||||
<label for="bitwarden">Do you want to install Bitwarden?</label>
|
||||
<select class="custom-select d-block w-100" name="bitwarden" id="bitwarden">
|
||||
<option value="Y">Yes</option>
|
||||
<option value="N" selected>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mb-3">
|
||||
<label for="guacamole">Do you want to install Guacamole?</label>
|
||||
<select class="custom-select d-block w-100" name="guacamole" id="guacamole">
|
||||
<option value="Y">Yes</option>
|
||||
<option value="N" selected>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mb-3">
|
||||
<label for="smtp">Do you want to install SMTP server?</label>
|
||||
<select class="custom-select d-block w-100" name="smtp" id="smtp">
|
||||
<option value="Y">Yes</option>
|
||||
<option value="N" selected>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mb-3">
|
||||
<label for="roundcube">Do you want to install roundcube? (Y/n)</label>
|
||||
<select class="custom-select d-block w-100" name="roundcube" id="roundcube">
|
||||
<option value="Y">Yes</option>
|
||||
<option value="N" selected>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<br>
|
||||
@@ -190,6 +226,10 @@ jQuery(document).ready(function(){
|
||||
if (jQuery(this).val()=='Y') jQuery('#div_vpn').show();
|
||||
else jQuery('#div_vpn').hide();
|
||||
});
|
||||
jQuery('select#discovery').click(function() {
|
||||
if (jQuery(this).val()=='Y') jQuery('#div_discover').show();
|
||||
else jQuery('#div_discover').hide();
|
||||
});
|
||||
jQuery('select#additional').click(function() {
|
||||
if (jQuery(this).val()=='Y') jQuery('#div_additionals').show();
|
||||
else jQuery('#div_additionals').hide();
|
||||
|
19
install.sh
19
install.sh
@@ -345,17 +345,10 @@ install_docker_deb() {
|
||||
|
||||
ask_additionals() {
|
||||
|
||||
echo "Please add directory path of service files: (/etc/user/config/services/)";
|
||||
read -r SERVICE_DIR;
|
||||
# TODO
|
||||
# echo "The path must be absolute, for example /etc/user/config/services/. Please type it again."
|
||||
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)";
|
||||
@@ -497,13 +490,7 @@ ask_additionals() {
|
||||
fi;
|
||||
fi
|
||||
|
||||
echo "Do you want to install SMTP server? (Y/n)";
|
||||
read -r ANSWER;
|
||||
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ]; then
|
||||
SMTP="yes";
|
||||
|
||||
|
||||
fi;
|
||||
# SMTP="yes";
|
||||
|
||||
echo "Do you want to install roundcube? (Y/n)";
|
||||
read -r ANSWER;
|
||||
|
Reference in New Issue
Block a user