|
|
@@ -22,6 +22,18 @@ ln -sf /userdata/profile_pictures /application/forums/profile_pictures |
|
|
|
rm -rf /application/forums/pm_attachments |
|
|
|
ln -sf /userdata/pm_attachments /application/forums/pm_attachments |
|
|
|
|
|
|
|
# Configure email |
|
|
|
cp /configuration/msmtprc /etc/msmtprc |
|
|
|
sed -i "s/@GCL_SMTP_HOST@/$GCL_SMTP_HOST/g" /etc/msmtprc |
|
|
|
|
|
|
|
SMTP_PORT=${GCL_SMTP_PORT:-587} |
|
|
|
sed -i "s/@GCL_SMTP_PORT@/$SMTP_PORT/g" /etc/msmtprc |
|
|
|
|
|
|
|
SMTP_FROM=${GCL_SMTP_FROM:-no-reply@glitchcity.info} |
|
|
|
sed -i "s/@GCL_SMTP_FROM@/$SMTP_FROM/g" /etc/msmtprc |
|
|
|
sed -i "s/@GCL_SMTP_USER@/$GCL_SMTP_USER/g" /etc/msmtprc |
|
|
|
sed -i "s/@GCL_SMTP_PASSWORD@/$GCL_SMTP_PASSWORD/g" /etc/msmtprc |
|
|
|
|
|
|
|
# Run maintenance scripts |
|
|
|
cd /application/w/maintenance |
|
|
|
php update.php |