2021-08-28 20:36:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eo pipefail
|
2021-09-04 14:27:05 +00:00
|
|
|
source /home/hmn/hmn/server/hmn.conf
|
2021-08-28 20:36:52 +00:00
|
|
|
|
|
|
|
echo 'Content-Type: text/plain'
|
|
|
|
echo ''
|
|
|
|
|
|
|
|
if [[ "$HTTP_X_GITLAB_TOKEN" != "$GITLAB_SECRET" ]]; then
|
|
|
|
echo 'Not Authorized'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
/home/hmn/hmn/server/deploy.sh $1
|