File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,18 @@ if [ -f ${SKYHOOK_DIR}/configmaps/ulimit.conf ]; then
8888 done
8989fi
9090
91- # Loop through all service files and add them as drop-ins
92- for f in ${SKYHOOK_DIR} /configmaps/service_* .conf; do
93- service_name=$( basename ${f} | cut -f 2 -d _ | cut -f 1 -d .)
94- echo " -------------------------"
95- echo " Updating ${service_name} settings"
96- echo " -------------------------"
97- mkdir -p /etc/systemd/system/${service_name} .service.d
98- cp ${f} /etc/systemd/system/${service_name} .service.d/999-${package_name} -tuning.conf
99- done
91+ if [ $( ls ${SKYHOOK_DIR} /configmaps | grep -c service_.* .conf) -eq 0 ]; then
92+ # Loop through all service files and add them as drop-ins
93+ for f in ${SKYHOOK_DIR} /configmaps/service_* .conf; do
94+ service_name=$( basename ${f} | cut -f 2 -d _ | cut -f 1 -d .)
95+ echo " -------------------------"
96+ echo " Updating ${service_name} settings"
97+ echo " -------------------------"
98+ mkdir -p /etc/systemd/system/${service_name} .service.d
99+ cp ${f} /etc/systemd/system/${service_name} .service.d/999-${package_name} -tuning.conf
100+ done
101+
100102
101- if [ -z $( ls ${SKYHOOK_DIR} /configmaps/service_* .conf) ]; then
102103 echo " -------------------------"
103104 echo " Reloading systemd"
104105 echo " -------------------------"
You can’t perform that action at this time.
0 commit comments