JLChafardet
Regular Pleskian
this is a little script i just wrote, to let you all (ofcourse i wrote it to save my time) save time if you want to enable the desktop feature and domain alias to your domains.
[root@swordfish ~]# cat desktop_alias_enabler.sh
#!/bin/bash
ls -la /home/httpd/vhosts/|grep ^d|grep -v " \."|cut -c 57- > /root/domains.txt
for line in `cat /root/domains.txt`
do
/usr/local/psa/bin/./domuser.sh -u $line -manage_dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -manage_domain_aliases true
done
[root@swordfish ~]#
Please do the following:
nano desktop_alias_enabler.sh
copy and paste the script above pasted
CTRL+X
Y
ENTER
chmod +x desktop_alias_enabler.sh
sh desktop_alias_enabler.sh
I hope you all find it as usefull as it was for me (saved me HOURS) of work.
Regards,
[root@swordfish ~]# cat desktop_alias_enabler.sh
#!/bin/bash
ls -la /home/httpd/vhosts/|grep ^d|grep -v " \."|cut -c 57- > /root/domains.txt
for line in `cat /root/domains.txt`
do
/usr/local/psa/bin/./domuser.sh -u $line -manage_dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -manage_domain_aliases true
done
[root@swordfish ~]#
PHP:
#!/bin/bash
ls -la /home/httpd/vhosts/|grep ^d|grep -v " \."|cut -c 57- > /root/domains.txt
for line in `cat /root/domains.txt`
do
/usr/local/psa/bin/./domuser.sh -u $line -manage_dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -dashboard true
/usr/local/psa/bin/./domuser.sh -u $line -manage_domain_aliases true
done
Please do the following:
nano desktop_alias_enabler.sh
copy and paste the script above pasted
CTRL+X
Y
ENTER
chmod +x desktop_alias_enabler.sh
sh desktop_alias_enabler.sh
I hope you all find it as usefull as it was for me (saved me HOURS) of work.
Regards,