Created
September 3, 2012 14:22
-
-
Save benoitjpnet/3609673 to your computer and use it in GitHub Desktop.
deactivate vacation for multiples account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
date=$(date +%Y%m%d) | |
for homedir in toto tata titi; | |
do | |
if [ -d /home/${homedir} ] ; then | |
echo "Deactivating $homedir vacation"; | |
cd /home/${homedir} | |
mv .forward .forward.${date} | |
mv .vacation.db .vacation.db.${date} | |
mv .vacation.msg .vacation.msg.${date} | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment