New SSH authorize file; whatismyip fix; PKGBUILDs
This commit is contained in:
@@ -20,7 +20,7 @@ echo == Updating Arch Packages == | tee -a $logfile
|
||||
if [ ! -z "$apply" ]; then
|
||||
pacman -Syu 2>&1 | tee -a $logfile # I've been having troubles with this causing crashes while online.
|
||||
# Hook for MediaWiki
|
||||
if [ `grep $(date +$F) /var/log/pacman.log | grep -c mediawiki` -eq 1 ] && [ -d /usr/share/webapps/mediawiki ]; then
|
||||
if [ `grep $(date +%F) /var/log/pacman.log | grep -c mediawiki` -eq 1 ] && [ -d /usr/share/webapps/mediawiki ]; then
|
||||
php /usr/share/webapps/mediawiki/maintenance/update.php | tee -a $logfile
|
||||
for i in `find /usr/share/webapps/ -maxdepth 1 -type d | grep mediawiki\-`; do
|
||||
rsync -avz --exclude images --exclude Images --exclude LocalSettings.php /usr/share/webapps/mediawiki/ "$i"
|
||||
@@ -28,7 +28,7 @@ if [ ! -z "$apply" ]; then
|
||||
done
|
||||
fi
|
||||
# Hook for Grimoire
|
||||
if [ `grep $(date +$F) /var/log/pacman.log | grep -c 'upgraded postgresql '` -eq 1 ]; then
|
||||
if [ `grep $(date +%F) /var/log/pacman.log | grep -c 'upgraded postgresql '` -eq 1 ]; then
|
||||
echo "Updating PostGreSQL databases" | tee -a $logfile
|
||||
#Clear old backups.
|
||||
rm -Rf /var/lib/postgres/olddata
|
||||
|
Reference in New Issue
Block a user