This commit is contained in:
@@ -140,22 +140,25 @@ if [[ "$ROUNDCUBE" == "yes" ]]; then
|
|||||||
|
|
||||||
git clone ssh://$GIT_REPO/$ORGANIZATION/roundcube.git /tmp/roundcube;
|
git clone ssh://$GIT_REPO/$ORGANIZATION/roundcube.git /tmp/roundcube;
|
||||||
|
|
||||||
sed -i "s/DEFAULT_HOST/$ROUNDCUBE_IMAP_HOST/g" /tmp/roundcube/roundcube-secret.json
|
sed -i "s/DOMAIN_NAME/$ROUNDCUBE_DOMAIN/g" /tmp/roundcubde/domain-roundcubde.json
|
||||||
sed -i "s/DEFAULT_PORT/$ROUNDCUBE_IMAP_PORT/g" /tmp/roundcube/roundcube-secret.json
|
|
||||||
sed -i "s/SMTP_SERVER/$ROUNDCUBE_SMTP_HOST/g" /tmp/roundcube/roundcube-secret.json
|
sed -i "s/RC_DEFAULT_HOST/$ROUNDCUBE_IMAP_HOST/g" /tmp/roundcube/roundcube-secret.json
|
||||||
sed -i "s/SMTP_PORT/$ROUNDCUBE_SMTP_PORT/g" /tmp/roundcube/roundcube-secret.json
|
sed -i "s/RC_DEFAULT_PORT/$ROUNDCUBE_IMAP_PORT/g" /tmp/roundcube/roundcube-secret.json
|
||||||
|
sed -i "s/RC_SMTP_SERVER/$ROUNDCUBE_SMTP_HOST/g" /tmp/roundcube/roundcube-secret.json
|
||||||
|
sed -i "s/RC_SMTP_PORT/$ROUNDCUBE_SMTP_PORT/g" /tmp/roundcube/roundcube-secret.json
|
||||||
#sed -i "s/SMTP_SECURITY/$SMTP_SECURITY/g" /tmp/roundcube/roundcube-secret.json
|
#sed -i "s/SMTP_SECURITY/$SMTP_SECURITY/g" /tmp/roundcube/roundcube-secret.json
|
||||||
#sed -i "s/SMTP_AUTHMECHANISM/$SMTP_AUTH_MECHANISM/g" /tmp/roundcube/roundcube-secret.json
|
#sed -i "s/SMTP_AUTHMECHANISM/$SMTP_AUTH_MECHANISM/g" /tmp/roundcube/roundcube-secret.json
|
||||||
sed -i "s/UPLOAD_MAX_FILESIZE/$ROUNDCUBE_UPLOAD_MAX_FILESIZE/g" /tmp/roundcube/roundcube-secret.json
|
sed -i "s/RC_UPLOAD_MAX_FILESIZE/$ROUNDCUBE_UPLOAD_MAX_FILESIZE/g" /tmp/roundcube/roundcube-secret.json
|
||||||
|
|
||||||
sed -i "s/DB_MYSQL/$DB_MYSQL/g" /tmp/roundcube/roundcube-secret.json;
|
sed -i "s/RC_DB_MYSQL/$DB_MYSQL/g" /tmp/roundcube/roundcube-secret.json;
|
||||||
sed -i "s/DB_USER/$DB_USER/g" /tmp/roundcube/roundcube-secret.json;
|
sed -i "s/RC_DB_USER/$DB_USER/g" /tmp/roundcube/roundcube-secret.json;
|
||||||
sed -i "s/DB_PASSWORD/$DB_PASSWORD/g" /tmp/roundcube/roundcube-secret.json;
|
sed -i "s/RC_DB_PASSWORD/$DB_PASSWORD/g" /tmp/roundcube/roundcube-secret.json;
|
||||||
sed -i "s/DB_ROOT_PASSWORD/$DB_ROOT_PASSWORD/g" /tmp/roundcube/roundcube-secret.json;
|
#sed -i "s/RC_DB_ROOT_PASSWORD/$DB_ROOT_PASSWORD/g" /tmp/roundcube/roundcube-secret.json;
|
||||||
sed -i "s#DOMAIN#$ROUNDCUBE_DOMAIN#g" /tmp/roundcube/roundcube-secret.json
|
|
||||||
|
|
||||||
cp -rv /tmp/roundcube/roundcube-secret.json /etc/user/secret/roundcube.json;
|
cp -rv /tmp/roundcube/roundcube-secret.json /etc/user/secret/roundcube.json;
|
||||||
cp -rv /tmp/roundcube/roundcube.json $SERVICE_DIR/roundcube.json;
|
cp -rv /tmp/roundcube/roundcube.json $SERVICE_DIR/roundcube.json;
|
||||||
|
cp -rv /tmp/roundcube/domain-roundcube.json $SERVICE_DIR/domain-roundcube.json;
|
||||||
|
cp -rv /tmp/roundcube/firewall-roundcube.json $SERVICE_DIR/firewall-roundcube.json;
|
||||||
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user