|
|
|
@@ -54,6 +54,11 @@ if [[ ${#nextcloud_admin_pwd} -eq 0 ]]; then |
|
|
|
nextcloud_admin_pwd=`eval "$PWD_GEN"` |
|
|
|
fi |
|
|
|
|
|
|
|
read -p "E-mail for Let's Encrypt account (admin@${domain}): " letsencrypt_email |
|
|
|
if [[ ${#letsencrypt_email} -eq 0 ]]; then |
|
|
|
letsencrypt_email=admin@${domain} |
|
|
|
fi |
|
|
|
|
|
|
|
echo "If you have a password salt and a secret from a previous installation, provide them here." |
|
|
|
echo "They are used by Passman and need to remain the same for the vaults to be accessible" |
|
|
|
read -p "Nextcloud Pwd Salt (a random one will be generated by NC if empty): " nextcloud_salt |
|
|
|
@@ -74,6 +79,7 @@ echo Your domain is: $domain |
|
|
|
echo Your Volumes path is: $volumes |
|
|
|
echo Your LDAP Mail Bind DN Uid is: $ldap_mail_uid |
|
|
|
echo Your LDAP Nextcloud Bind DN Uid is: $ldap_nextcloud_uid |
|
|
|
echo Your Let\'s Encrypt account e-mail: $letsencrypt_email |
|
|
|
|
|
|
|
echo $'\E[1;37m' |
|
|
|
read -p "Are These Settings Correct? Yes (y), No (n): " confirm |
|
|
|
@@ -115,7 +121,8 @@ for i in `ls *.env .env`; do |
|
|
|
sed -i "s/\${VOLUMES_PATH}/${volumes//\//\\/}/g" $i |
|
|
|
sed -i "s/\${MAIL_LDAP_UID}/${ldap_mail_uid}/g" $i |
|
|
|
sed -i "s/\${NEXTCLOUD_LDAP_UID}/${ldap_nextcloud_uid}/g" $i |
|
|
|
#sed -i "s/\${}/$/g" $i |
|
|
|
sed -i "s/\${LETSENCRYPT_EMAIL}/${letsencrypt_email}/g" $i |
|
|
|
#sed -i "s/\${}/${}/g" $i |
|
|
|
done; |
|
|
|
|
|
|
|
# read variables |