|
@ -65,6 +65,13 @@ ln -sfn /opt/apps/myc-manage/etc/cron.d/* /etc/cron.d/ |
|
|
find -L /etc/cron.d -maxdepth 1 -type l -ilname /opt/apps/myc-manage/etc/cron.d/\* -delete |
|
|
find -L /etc/cron.d -maxdepth 1 -type l -ilname /opt/apps/myc-manage/etc/cron.d/\* -delete |
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
Wrap -d "Updating sysctl scripts" <<EOF || exit 1 |
|
|
|
|
|
for d in /etc/sysctl.d; do |
|
|
|
|
|
ln -sfn "/opt/apps/myc-manage\$d/"* "\$d/" && |
|
|
|
|
|
find -L "\$d" -maxdepth 1 -type l -ilname "/opt/apps/myc-manage\$d/"\* -delete |
|
|
|
|
|
done |
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
if [ -f "/root/.bashrc" ]; then |
|
|
if [ -f "/root/.bashrc" ]; then |
|
|
Wrap -d "Enable colors in bash" <<'EOF' || exit 1 |
|
|
Wrap -d "Enable colors in bash" <<'EOF' || exit 1 |
|
|
sed -ri 's/^# (export LS_OPTIONS=.--color=auto.)/\1/; |
|
|
sed -ri 's/^# (export LS_OPTIONS=.--color=auto.)/\1/; |
|
|