Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE Directory : /usr/local/bin/ |
Upload File : |
#!/bin/sh # # /etc/init.d/runonce # chkconfig: 3 95 05 # description: runonce provisioning steps # # processname: runonce # This makes sure that runlevel is set # PATH needs to be set. Installer dies due to different path via cron declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" export PATH sleep 60; for file in /usr/local/runonce.d/*.sh; do if [ ! -f "$file" ]; then continue fi /bin/bash "$file" &>> /var/log/runonce.log filen=$(echo $file | cut -d '/' -f 5) mv "$file" "/usr/local/runonce.d/ran/$filen.$(date +%Y%m%dT%H%M%S)" /bin/logger -t runonce -p local3.info "$file" done if [ -f /usr/local/bin/runonce ]; then sed -i '\#/usr/local/bin/runonce#d' /var/spool/cron/root fi