From: Ian Kelling Date: Sun, 14 Aug 2016 05:14:28 +0000 (-0700) Subject: add readme, small update X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=f28733f4fdf50cb629fb461b6c4039b564bbd5b0;p=mediawiki-setup add readme, small update --- diff --git a/Mediawiki_Setup_Guide b/Mediawiki_Setup_Guide index 580ea3c..0802872 100644 --- a/Mediawiki_Setup_Guide +++ b/Mediawiki_Setup_Guide @@ -161,7 +161,7 @@ mw-ext () { mw-clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/$ext if [[ -e $mw/ext/$ext/extension.json ]]; then # new style extension. remove old style declaration - sed -i '#^require_once( "\\\$IP/extensions/\$ext/\$ext\.php" );#d' $mwc + sed -i --follow-symlinks '#^require_once( "\\\$IP/extensions/\$ext/\$ext\.php" );#d' $mwc teeu $mwc < -sed -i "/\\\$wgGroupPermissions\\['\\*'\\]\\['createaccount'\\] = false;/d" $mwc +sed -i --follow-symlinks "/\\\$wgGroupPermissions\\['\\*'\\]\\['createaccount'\\] = false;/d" $mwc == Additional Configuration with Pywikibot == @@ -903,7 +903,7 @@ tee -a $mwc<<'EOF' EOF mkdir -p ~/wiki_backups mysqldump -p$dbpass --default-character-set=binary my_wiki > ~/wiki_backups/wiki_db_backup -sed -i '\$ d' $mwc # delete read only setting +sed -i --follow-symlinks '\$ d' $mwc # delete read only setting ENDSSH set -x rdiff-backup root@$mwdomain::/root/wiki_backups ~/backup/${mwdomain}_wiki_db_backup @@ -924,7 +924,7 @@ If you are like most people and don't use the old-school mail spool, setup the b '''Optional & requires additional steps''' -sed -i "/^root:/d" /etc/aliases +sed -i --follow-symlinks "/^root:/d" /etc/aliases echo "root: EXAMPLE_ONLY_REPLACE_ME@gmail.com" >> /etc/aliases newaliases diff --git a/README b/README new file mode 100644 index 0000000..e89a5c2 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +Mediawiki setup guide / fully automated script + +Alternate form of https://ofswiki.org/wiki/Mediawiki_Setup_Guide