Commit c98cee00 authored by Jondy Zhao's avatar Jondy Zhao

Fix cron service couldn't be installed when use slapos prefix

parent 1e68b17d
...@@ -766,7 +766,7 @@ install_service() { ...@@ -766,7 +766,7 @@ install_service() {
fi fi
if cygrunsrv -I ${cron_service_name} -p /usr/sbin/cron -e CYGWIN="${cygenv}" \ if cygrunsrv -I ${cron_service_name} -p /usr/sbin/cron -e CYGWIN="${cygenv}" \
-a "-n" -d "Cron daemon" -u "$username" -w "$_password" -a "-n" -d "CYGWIN ${cron_service_name}" -u "$username" -w "$_password"
then then
service="service" service="service"
else else
...@@ -774,7 +774,7 @@ install_service() { ...@@ -774,7 +774,7 @@ install_service() {
fi fi
else else
if cygrunsrv -I ${cron_service_name} -p /usr/sbin/cron -e CYGWIN="${cygenv}" \ if cygrunsrv -I ${cron_service_name} -p /usr/sbin/cron -e CYGWIN="${cygenv}" \
-a "-n" -d "Cron daemon" -a "-n" -d "CYGWIN ${cron_service_name}"
then then
service="service" service="service"
else else
...@@ -821,7 +821,7 @@ install_service() { ...@@ -821,7 +821,7 @@ install_service() {
elif [ "${service}" = "job" ]; then elif [ "${service}" = "job" ]; then
echo "OK. Type '/usr/sbin/cron' to start the cron daemon job." echo "OK. Type '/usr/sbin/cron' to start the cron daemon job."
else else
echo "OK. Type 'cygrunsrv -S cron' to start the cron daemon service." echo "OK. Type 'cygrunsrv -S ${cron_service_name}' to start the cron daemon service."
echo " It will restart automatically at each reboot." echo " It will restart automatically at each reboot."
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment