From: Ian Kelling Date: Fri, 26 Aug 2016 07:13:07 +0000 (-0700) Subject: get latest fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=588d277988efb692ae76ed500ebd3727db386461;p=mediawiki-setup get latest fix --- diff --git a/Mediawiki_Setup_Guide b/Mediawiki_Setup_Guide index 0802872..f060408 100644 --- a/Mediawiki_Setup_Guide +++ b/Mediawiki_Setup_Guide @@ -893,21 +893,27 @@ sudo dd of=$backup_script <<'EOFOUTER' last_error=0 trap 'last_error=$?' ERR source ~/mw_vars +# No strict because the host is likely not named the same as +# the domain. +ssh="ssh -oStrictHostKeyChecking=no" logfile=/var/log/${mwdomain}_backup.log { echo "#### starting backup at $(date) ####" -ssh root@$mwdomain < ~/wiki_backups/wiki_db_backup -sed -i --follow-symlinks '\$ d' $mwc # delete read only setting +sed -i '\$ d' $mwc # delete read only setting ENDSSH +# add no strict option to the defaults + +rdiff() { rdiff-backup --remote-schema "$ssh -C %s rdiff-backup --server" "$@"; } set -x -rdiff-backup root@$mwdomain::/root/wiki_backups ~/backup/${mwdomain}_wiki_db_backup -rdiff-backup root@$mwdomain::$mw ~/backup/${mwdomain}_wiki_file_backup +rdiff root@$mwdomain::/root/wiki_backups ~/backup/${mwdomain}_wiki_db_backup +rdiff root@$mwdomain::$mw ~/backup/${mwdomain}_wiki_file_backup set +x echo "=== ending backup at $(date) ====" } &>>$logfile diff --git a/mw-setup-script b/mw-setup-script index 12f0c45..40b5cfa 100755 --- a/mw-setup-script +++ b/mw-setup-script @@ -40,7 +40,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 # # # get repo