diff --git a/Admin/arch-update b/Admin/arch-update index 084e249..8b8d8f4 100755 --- a/Admin/arch-update +++ b/Admin/arch-update @@ -20,8 +20,12 @@ 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 ]; 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" + php "$i"/maintenance/update.php + done fi # Hook for Grimoire if [ `grep $(date +$F) /var/log/pacman.log | grep -c 'upgraded postgresql '` -eq 1 ]; then @@ -69,6 +73,19 @@ else fi echo | tee -a $logfile +# Update AniNIX packages +echo == Updating AniNIX Packages == | tee -a $logfile +if [ ! -z "$apply" ]; then + for i in `find /usr/local/src/ -maxdepth 6 -type f -name config -exec egrep -l aninix\|foundation {} \; | sed 's#.git/config$##'`; do + cd "$i" + git pull + make + make install + done +fi + + + # Generate list of installed packages echo == Generated installed-packages list == | tee -a $logfile pacman -Qqe | egrep '^[a-z]' | sed 's#local/##' > /var/log/installed-packages.txt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00898a6 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +LIST=Admin Shared ShadowArch + +compile: ${LIST} ./wifi.service + for i in ${LIST}; do make -C ./$$i; done + +install: compile + for i in ${LIST}; do make -C ./$$i install; done + +reverse: + @echo Please do this for each individual folder in ${LIST} + +test: ${LIST} + @echo Please do this for each individual folder in ${LIST} + +checkperm: + @echo Please do this for each individual folder in ${LIST} + +clean: + @echo Nothing to do. + +diff: + @echo Please do this for each individual folder in ${LIST} + diff --git a/ShadowArch/skel/.ssh/config b/ShadowArch/skel/.ssh/config new file mode 100644 index 0000000..e69de29