minor changes
This commit is contained in:
parent
b70cd2dba8
commit
2d689c65bd
@ -19,6 +19,7 @@ if [ "$whereami" != "$scriptdir" ]; then printf "\nWrong directory! Script must
|
||||
# Define variables and functions
|
||||
#
|
||||
line () { printf -- '-%.0s' {1..50}; printf '\n'; }
|
||||
# shellcheck disable=SC2010
|
||||
nginxconfig=$(ls -la |grep "conf" |awk '{print $9}')
|
||||
#
|
||||
# Function to check if a service is already running or not
|
||||
@ -71,7 +72,7 @@ printf '%s\n' "${giteaconfig[@]}" |sed '$d' >> /etc/gitea/app.ini
|
||||
#
|
||||
# Adjusting gitea nginx configuration and cleaning up
|
||||
#
|
||||
sed -i 's/# Optional //' /etc/nginx/conf.d/$nginxconfig ; rm $nginxconfig
|
||||
sed -i 's/# Optional //' /etc/nginx/conf.d/"$nginxconfig" ; rm "$nginxconfig"
|
||||
#
|
||||
# Restart Gitea and Nginx in order for changes to take effect
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user