forked from joseph/gitea_CICD
change install file
This commit is contained in:
parent
e6c5690b10
commit
e0f915f33e
|
|
@ -14,7 +14,7 @@ if [ -d "/etc/systemd/system" ]; then
|
||||||
echo "|------------------------------|"
|
echo "|------------------------------|"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
cp -rf service/* service_run &&
|
find $pwd_install/service -type f -not -name "giteaService.conf" -exec cp {} $pwd_install/service_run \;
|
||||||
|
|
||||||
sleep 2 &&
|
sleep 2 &&
|
||||||
sudo sed -i "s#ExecStart=.*#ExecStart=$escaped_pwd_install/service_run/giteaService.sh#" $pwd_install/service_run/giteaHook.service &&
|
sudo sed -i "s#ExecStart=.*#ExecStart=$escaped_pwd_install/service_run/giteaService.sh#" $pwd_install/service_run/giteaHook.service &&
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ echo "|----------------------|"
|
||||||
echo "|*** UPDATE LIBRARY ***|"
|
echo "|*** UPDATE LIBRARY ***|"
|
||||||
echo "|----------------------|"
|
echo "|----------------------|"
|
||||||
|
|
||||||
input_file="$HOOK_PATH/service_temp/giteaService.conf" &&
|
input_file="$HOOK_PATH/service_run/giteaService.conf" &&
|
||||||
|
|
||||||
# Doc va xu ly tung dong
|
# Doc va xu ly tung dong
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue