Adding AniNIX packages to update list -- usability fixes.
This commit is contained in:
parent
c3ac85d78b
commit
d2deb6bee3
@ -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
|
||||
|
23
Makefile
Normal file
23
Makefile
Normal file
@ -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}
|
||||
|
0
ShadowArch/skel/.ssh/config
Normal file
0
ShadowArch/skel/.ssh/config
Normal file
Loading…
Reference in New Issue
Block a user