Browse Source

Remove install.php

mw_31
Adrian Malacoda 1 year ago
parent
commit
d2c68efe43
1 changed files with 18 additions and 15 deletions
  1. +18
    -15
      scripts/setup.sh

+ 18
- 15
scripts/setup.sh View File

@@ -1,26 +1,26 @@
#!/bin/bash -e

# Create symlinks between application, userdata, and configuration
rm /application/w/LocalSettings.php
ln -sf /configuration/MWSettings.php /application/w/LocalSettings.php
rm $WIKI_SOURCE/LocalSettings.php
ln -sf /configuration/MWSettings.php $WIKI_SOURCE/LocalSettings.php

rm /application/forums/Settings.php
ln -sf /configuration/SMFSettings.php /application/forums/Settings.php
rm $FORUMS_SOURCE/Settings.php
ln -sf /configuration/SMFSettings.php $FORUMS_SOURCE/Settings.php

rm -rf /application/w/images
ln -sf /userdata/images /application/w/images
rm -rf $WIKI_SOURCE/images
ln -sf /userdata/images $WIKI_SOURCE/images

rm -rf /application/forums/downloads
ln -sf /userdata/downloads /application/forums/downloads
rm -rf $FORUMS_SOURCE/downloads
ln -sf /userdata/downloads $FORUMS_SOURCE/downloads

rm -rf /application/forums/attachments
ln -sf /userdata/attachments /application/forums/attachments
rm -rf $FORUMS_SOURCE/attachments
ln -sf /userdata/attachments $FORUMS_SOURCE/attachments

rm -rf /application/forums/profile_pictures
ln -sf /userdata/profile_pictures /application/forums/profile_pictures
rm -rf $FORUMS_SOURCE/profile_pictures
ln -sf /userdata/profile_pictures $FORUMS_SOURCE/profile_pictures

rm -rf /application/forums/pm_attachments
ln -sf /userdata/pm_attachments /application/forums/pm_attachments
rm -rf $FORUMS_SOURCE/pm_attachments
ln -sf /userdata/pm_attachments $FORUMS_SOURCE/pm_attachments

# Configure email
cp /configuration/msmtprc /etc/msmtprc
@@ -35,5 +35,8 @@ 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
cd $WIKI_SOURCE/maintenance
php update.php

cd $FORUMS_SOURCE
rm install.php

Loading…
Cancel
Save