Simplify ExecStart command.

pull/4/head
Cédric Bonhomme 2017-08-08 10:23:29 +02:00
parent e5a1139a95
commit 2750d317c7
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ gpg --homedir $PATH_TO_MISP/.gnupg --export --armor $EMAIL_ADDRESS > $PATH_TO_MI
echo -e "\n--- Making the background workers start on boot... ---\n"
chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
chmod 755 $PATH_TO_MISP/app/Console/worker/start.sh
cat > /etc/systemd/system/workers.service <<EOF
[Unit]
Description=Start the background workers at boot
@ -301,7 +301,7 @@ Description=Start the background workers at boot
Type=oneshot
RemainAfterExit=yes
User=www-data
ExecStart=/bin/sh -c 'bash $PATH_TO_MISP/app/Console/worker/start.sh'
ExecStart=$PATH_TO_MISP/app/Console/worker/start.sh
[Install]
WantedBy=multi-user.target