#!/bin/bash
# wp-update.sh
# update wordpress installation(s) to $1 branch
#
# this script takes the new branch as an argument
DOMAINS="domain1.tld \
domain2.tld \
domain3.tld"
if [ $# -ne 1 ]; then
echo "EPIC FAIL: Missing new version!"
echo "Try: ./wp-upgrade x.x.x (ie; 2.7.1)
exit 1
fi
for site in ${DOMAINS}; do
echo "upgrading ${site}"
echo
cd /var/www/${site}/
svn sw http://core.svn.wordpress.org/tags/$1/ .
done
./wp-update.sh 2.7.3
#!/bin/bash
#
# Script to perform some common system operations
#
while :
do
clear
echo "************************"
echo "* My tools *"
echo "************************"
echo "* [b] Backup *"
echo "* [a] Attach sshfs *"
echo "* [u] Unmount sshfs *"
echo "* [l] Server Login ssh *"
echo "* [t] Tunnels over ssh *"
echo "* [x] X-forwarding ssh *"
echo "* [s] Suspend system *"
echo "* [f] Fix network *"
echo "* [d] Downloaders *"
echo "* [m] MoinMoin *"
echo "* [p] Powersave *"
echo "* [y] YouTube download *"
echo "* [g] Portfolio grabber*"
echo "* [0] Exit/Stop *"
echo "************************"
echo -n "Enter your menu choice [a-0]: "
read yourch
case $yourch in
b) $HOME/.scripts/tools/backup ;;
a) $HOME/.scripts/tools/mount ;;
u) $HOME/.scripts/tools/umount ;;
l) $HOME/.scripts/tools/ssh ;;
t) $HOME/.scripts/tools/tunnel ;;
x) $HOME/.scripts/tools/xforward ;;
s) $HOME/.scripts/tools/suspend ;;
f) $HOME/.scripts/tools/fixnetwork ;;
d) $HOME/.scripts/tools/downloaders ;;
b) /bin/bash ;;
k) kate $HOME/.scripts/scripts ;;
p) $HOME/.scripts/tools/powersave ;;
g) $HOME/.scripts/tools/pf-grabber.sh ;;
m) python $HOME/data/MoinMoin/moin-desktop/moin.py ;;
y) python $HOME/.scripts/tools/youtube.py ;;
0) exit 0;;
*) echo "Oopps!!! Please select choice 1,2,3 or 4";
echo "Press Enter to continue. . ." ; read ;;
esac
done
apt-get install update-manager-core
sudo do-release-upgrade --proposed
if you use proxy:
http_proxy="http://ip:port" do-release-upgrade
* Hit ALT+F2 and enter
* gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer
* add the following line BEFORE the last line of text
* export GDK_NATIVE_WINDOWS=1
* Save.
* Restart any applications using flash
Login as root
Edit the /usr/lib/cron/cron.allow file
Add “oracle” at the end.
Logout and login as “oracle” user again.