Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 879457f

Browse files
committed
Fix PermitUserEnvironment for gogs
1 parent 3a461fd commit 879457f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

copy/var/zoneinit/includes/25-gogs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
echo "PATH=/usr/local/sbin:/usr/local/bin:/opt/local/sbin:/opt/local/bin:/usr/sbin:/usr/bin:/sbin" > \
33
/opt/gogs/.ssh/environment
44

5+
# Enable environment configuration for users
6+
sed -e 's:.*PermitUserEnvironment.*no:PermitUserEnvironment yes:g' \
7+
/etc/ssh/sshd_config
8+
59
# Enable gogs service
610
svcadm enable svc:/application/gogs:default

0 commit comments

Comments
 (0)