R rjanssen Verified User Joined Apr 15, 2016 Messages 7 Oct 11, 2017 #1 Hi, I'm trying to find out which post sh file is running after a user level restore. It doesn't look like /usr/local/directadmin/scripts/custom/user_restore_post.sh is running when the restore completes. Regards, Rick
Hi, I'm trying to find out which post sh file is running after a user level restore. It doesn't look like /usr/local/directadmin/scripts/custom/user_restore_post.sh is running when the restore completes. Regards, Rick
zEitEr Super Moderator Joined Apr 11, 2005 Messages 16,006 Location www.poralix.com Oct 11, 2017 #2 Hello Rick, It works on my end. I tested it with: Code: touch /usr/local/directadmin/scripts/custom/user_restore_post.sh chmod 700 /usr/local/directadmin/scripts/custom/user_restore_post.sh vi /usr/local/directadmin/scripts/custom/user_restore_post.sh and added content: Code: #!/bin/bash echo -n 1 >> $0.counter; Ran restore process and checked: Code: # cat /usr/local/directadmin/scripts/custom/user_restore_post.sh.counter; echo 1 That's it.
Hello Rick, It works on my end. I tested it with: Code: touch /usr/local/directadmin/scripts/custom/user_restore_post.sh chmod 700 /usr/local/directadmin/scripts/custom/user_restore_post.sh vi /usr/local/directadmin/scripts/custom/user_restore_post.sh and added content: Code: #!/bin/bash echo -n 1 >> $0.counter; Ran restore process and checked: Code: # cat /usr/local/directadmin/scripts/custom/user_restore_post.sh.counter; echo 1 That's it.