mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:41:59 +01:00
Fixed envsubst command in postinstall script
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
a6393ae909
commit
d2d60eb8bd
@ -1,19 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$config['SITE_NAME'] = '$HOSTNAME';
|
config['SITE_NAME'] = '$HOSTNAME';
|
||||||
$config['SITE_URL'] = 'http://' . $config['SITE_NAME'] . '/';
|
config['SITE_URL'] = 'http://' . config['SITE_NAME'] . '/';
|
||||||
$config['DIR_BASE'] = '$DOCROOT/';
|
config['DIR_BASE'] = '$DOCROOT/';
|
||||||
|
|
||||||
$config['SMTP_DOMAIN'] = '$HOSTNAME';
|
config['SMTP_DOMAIN'] = '$HOSTNAME';
|
||||||
$config['SMTP_FROMADDR'] = 'no-reply@' . $config['SMTP_DOMAIN'];
|
config['SMTP_FROMADDR'] = 'no-reply@' . config['SMTP_DOMAIN'];
|
||||||
$config['ADMIN_EMAIL'] = 'admin@' . $config['SMTP_DOMAIN'];
|
config['ADMIN_EMAIL'] = 'admin@' . config['SMTP_DOMAIN'];
|
||||||
|
|
||||||
$config['DB_DRIVER'] = 'mysql';
|
config['DB_DRIVER'] = 'mysql';
|
||||||
$config['DB_PREFIX'] = '';
|
config['DB_PREFIX'] = '';
|
||||||
$config['DB_HOSTNAME'] = '$MYSQL_HOSTNAME';
|
config['DB_HOSTNAME'] = '$MYSQL_HOSTNAME';
|
||||||
$config['DB_USERNAME'] = '$MYSQL_USERNAME';
|
config['DB_USERNAME'] = '$MYSQL_USERNAME';
|
||||||
$config['DB_PASSWORD'] = '$MYSQL_PASSWORD';
|
config['DB_PASSWORD'] = '$MYSQL_PASSWORD';
|
||||||
$config['DB_DATABASE'] = '$MYSQL_DATABASE';
|
config['DB_DATABASE'] = '$MYSQL_DATABASE';
|
||||||
|
|
||||||
$config['SMARTHOST'] = '$SMARTHOST';
|
config['SMARTHOST'] = '$SMARTHOST';
|
||||||
$config['SMARTHOST_PORT'] = '$SMARTHOST_PORT';
|
config['SMARTHOST_PORT'] = '$SMARTHOST_PORT';
|
||||||
|
@ -401,16 +401,16 @@ SOCKHELPER
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -d "$DOCROOT" ]; then webui_install; fi
|
if [[ -d "$DOCROOT" ]]; then webui_install; fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
webui_install() {
|
webui_install() {
|
||||||
chmod 770 "${DOCROOT}/tmp" "${DOCROOT}/images"
|
chmod 770 "${DOCROOT}/tmp" "${DOCROOT}/images"
|
||||||
chown "${PILERUSER}:${DOCROOT}" "${DOCROOT}/tmp"
|
chown "$PILERUSER" "${DOCROOT}/tmp"
|
||||||
|
|
||||||
envsubst "${SCRIPT_DIR}/config-site.php.in" > "$CONFIG_SITE_PHP"
|
envsubst < "${SCRIPT_DIR}/config-site.php.in" | sed s%config%\$config%g > "$CONFIG_SITE_PHP"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user