Hello and sorry about my English.
I need help in bash code and i don't know if this is the right forum place:
I have server Centos (linux) with directadmin, and in the server i have 500 accounts.
for all the account (domains) i build my own CMS.
EX: /home/USERNAME/domains/SOMEDOMAIN.COM/public_html/ADMINFOLDER/(*allfiles*)
now i want to update my CMS for all my domain in this server.
i need some bash code that can go to all domain and delete the folder after it will copy the new folder of my CMS.
1: delete:
run script for all the accounts /home/*/domains/*/public_html/admin/FOLDERTODELTET and delete the folder.
2: update:
run script for all accounts and copy the folder from some place in the server like
/tmp/SOMEFOLDER - to the same place that i delete.
again i'm sorry about my English i hope some understand and can help me ...
I need help in bash code and i don't know if this is the right forum place:
I have server Centos (linux) with directadmin, and in the server i have 500 accounts.
for all the account (domains) i build my own CMS.
EX: /home/USERNAME/domains/SOMEDOMAIN.COM/public_html/ADMINFOLDER/(*allfiles*)
now i want to update my CMS for all my domain in this server.
i need some bash code that can go to all domain and delete the folder after it will copy the new folder of my CMS.
1: delete:
run script for all the accounts /home/*/domains/*/public_html/admin/FOLDERTODELTET and delete the folder.
2: update:
run script for all accounts and copy the folder from some place in the server like
/tmp/SOMEFOLDER - to the same place that i delete.
again i'm sorry about my English i hope some understand and can help me ...