|
@@ -345,7 +345,7 @@ function remove_gogs {
|
345
|
345
|
rm /etc/systemd/system/gogs.service
|
346
|
346
|
rm -rf /home/${GOGS_USERNAME}/*
|
347
|
347
|
remove_onion_service gogs ${GIT_ONION_PORT} 9418
|
348
|
|
- remove_completion_param install_gogs
|
|
348
|
+ remove_completion_param "install_gogs"
|
349
|
349
|
sed -i '/gogs /d' $COMPLETION_FILE
|
350
|
350
|
}
|
351
|
351
|
|
|
@@ -566,7 +566,7 @@ function install_gogs {
|
566
|
566
|
echo $'Added onion site for Gogs'
|
567
|
567
|
fi
|
568
|
568
|
|
569
|
|
- systemctl restart tor
|
|
569
|
+ systemctl reload tor
|
570
|
570
|
|
571
|
571
|
function_check wait_for_onion_service
|
572
|
572
|
wait_for_onion_service 'gogs'
|
|
@@ -583,11 +583,8 @@ function install_gogs {
|
583
|
583
|
chmod 600 /home/${MY_USERNAME}/README
|
584
|
584
|
fi
|
585
|
585
|
|
586
|
|
- if ! grep -q "gogs onion domain" ${COMPLETION_FILE}; then
|
587
|
|
- echo "gogs onion domain:${GIT_ONION_HOSTNAME}" >> ${COMPLETION_FILE}
|
588
|
|
- else
|
589
|
|
- sed -i "s|gogs onion domain.*|gogs onion domain:${GIT_ONION_HOSTNAME}|g" ${COMPLETION_FILE}
|
590
|
|
- fi
|
|
586
|
+ set_completion_param "gogs domain" "$GIT_DOMAIN_NAME"
|
|
587
|
+ set_completion_param "gogs onion domain" "$GIT_ONION_HOSTNAME"
|
591
|
588
|
|
592
|
589
|
function_check add_ddns_domain
|
593
|
590
|
add_ddns_domain ${GIT_DOMAIN_NAME}
|