misc
This commit is contained in:
parent
93629297ba
commit
7bc3188cb3
|
@ -95,7 +95,7 @@ fi
|
||||||
|
|
||||||
# remove jailkit socket if it exists
|
# remove jailkit socket if it exists
|
||||||
if grep -q "\[/usr/jails/$username/dev/log\]" /etc/jailkit/jk_socketd.ini; then
|
if grep -q "\[/usr/jails/$username/dev/log\]" /etc/jailkit/jk_socketd.ini; then
|
||||||
sed -i '/\/usr\/jails\/$username\/dev\/log/,+3 d' /etc/jailkit/jk_socketd.ini
|
sed -i "/\/usr\/jails\/$username\/dev\/log/,+3 d" /etc/jailkit/jk_socketd.ini
|
||||||
killall jk_socketd
|
killall jk_socketd
|
||||||
jk_socketd
|
jk_socketd
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -14,6 +14,6 @@ SetExternalAuthMethod pwauth pipe
|
||||||
# this is to force the default fpm, so we don't end up trying to use a virtualhosts jailed fpm which won't work
|
# this is to force the default fpm, so we don't end up trying to use a virtualhosts jailed fpm which won't work
|
||||||
<Directory "/srv/www/html/phpMyAdmin">
|
<Directory "/srv/www/html/phpMyAdmin">
|
||||||
<FilesMatch ".+\.ph(ar|p|tml)$">
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/etc/alternatives/php-fpm.sock|fcgi://localhost"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
|
@ -180,7 +180,7 @@ sed -i "s|paths = perl, /usr/lib/perl, /usr/lib/perl5, /usr/share/perl, /usr/sha
|
||||||
echo "" >> /etc/jailkit/jk_init.ini
|
echo "" >> /etc/jailkit/jk_init.ini
|
||||||
echo "[shellstack]" >> /etc/jailkit/jk_init.ini
|
echo "[shellstack]" >> /etc/jailkit/jk_init.ini
|
||||||
echo "comment = full featured shell for vhost-stack jails" >> /etc/jailkit/jk_init.ini
|
echo "comment = full featured shell for vhost-stack jails" >> /etc/jailkit/jk_init.ini
|
||||||
echo "paths = curl, dircolors, du, env, git, groups, mysql, mysqldump, /etc/bash_completion, /etc/bash_completion.d/, /usr/share/bash-completion/, /etc/ssl/certs/, /etc/nanorc, /usr/local/libexec/command-not-found-handle, /usr/share/nano/, /usr/share/zoneinfo/, /usr/local/bin/composer, /usr/local/bin/wp, /usr/local/sbin/mini_sendmail" >> /etc/jailkit/jk_init.ini
|
echo "paths = curl, diff, dircolors, du, env, git, groups, mysql, mysqldump, /etc/bash_completion, /etc/bash_completion.d/, /usr/share/bash-completion/, /etc/ssl/certs/, /etc/nanorc, /usr/local/libexec/command-not-found-handle, /usr/share/nano/, /usr/share/zoneinfo/, /usr/local/bin/composer, /usr/local/bin/wp, /usr/local/sbin/mini_sendmail" >> /etc/jailkit/jk_init.ini
|
||||||
echo "includesections = extendedshell, netutils, logbasics, apacheutils, php" >> /etc/jailkit/jk_init.ini
|
echo "includesections = extendedshell, netutils, logbasics, apacheutils, php" >> /etc/jailkit/jk_init.ini
|
||||||
echo "" >> /etc/jailkit/jk_init.ini
|
echo "" >> /etc/jailkit/jk_init.ini
|
||||||
echo "[php]" >> /etc/jailkit/jk_init.ini
|
echo "[php]" >> /etc/jailkit/jk_init.ini
|
||||||
|
|
Loading…
Reference in New Issue
Block a user