1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

Update _common.sh

This commit is contained in:
Éric Gaspar 2022-07-23 09:46:46 +02:00
parent 1704d39259
commit 7852cbca97
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -34,13 +34,6 @@ create_dir() {
mkdir -p "/var/log/$app" mkdir -p "/var/log/$app"
} }
config_nginx() {
if [ "$path_url" != "/" ]
then
ynh_replace_string --match_string "^#sub_path_only" --replace_string "" --target_file "../conf/nginx.conf"
fi
ynh_add_nginx_config
}
config_gitea() { config_gitea() {
ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+") ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+")