PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #/usr/bin/sh read -p "Enter cPanel username: " cpuser read -p "Database Name: " dbname read -p "Database Username: " dbuser read -p "Database Password: " dbpass # begin deploying the fucking thing ;) #wget http://dotslash-dev.org/pbackup echo "Copying the script and creating the backups directory !" cp /root/systools/pbackup.pl /home/$cpuser/etc/ #providing the script with suficient rights chown $cpuser: /home/$cpuser/etc/pbackup.pl chmod +x /home/$cpuser/etc/pbackup.pl #making the backup directory and giving it suficient rights as well mkdir -p /home/$cpuser/backups chmod -R 755 /home/$cpuser/backups chown $cpuser: /home/$cpuser/backups echo "Adjusting the script to $1 specifications" perl -p -i -e "s/CP-USER/$cpuser/g" /home/$cpuser/etc/pbackup.pl perl -p -i -e "s/DB-NAME/$dbname/g" /home/$cpuser/etc/pbackup.pl perl -p -i -e "s/DB-USER/$dbuser/g" /home/$cpuser/etc/pbackup.pl perl -p -i -e "s/DB-PASS/$dbpass/g" /home/$cpuser/etc/pbackup.pl echo "Adding the script to the user's crontab" echo "0 0 * * * perl etc/pbackup.pl > /dev/null" >> /var/spool/cron/$cpuser echo "Applying the correct rights to the cron file" chown root:$cpuser /var/spool/cron/$cpuser