?
Current Path : /usr/local/bin/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/local/bin/runonce |
#!/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