change install file

This commit is contained in:
Joseph Le 2023-10-12 18:50:00 +11:00
parent e6c5690b10
commit e0f915f33e
2 changed files with 2 additions and 2 deletions

View File

@ -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 &&

View File

@ -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