mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
5706727e8c
commit
cea65f6f67
@ -2,7 +2,7 @@
|
|||||||
_pkgname=ssh
|
_pkgname=ssh
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.6
|
pkgver=0.0.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ssh with configuration"
|
pkgdesc="ssh with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -9,10 +9,15 @@ stdin=$(cat)
|
|||||||
echo "$stdin" | grep --quiet '^UsePAM yes$'
|
echo "$stdin" | grep --quiet '^UsePAM yes$'
|
||||||
#
|
#
|
||||||
echo "$stdin" | grep --quiet '^#PermitRootLogin\s*$'
|
echo "$stdin" | grep --quiet '^#PermitRootLogin\s*$'
|
||||||
|
! echo "$stdin" | grep --quiet '^PermitRootLogin\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s*$'
|
echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s*$'
|
||||||
|
! echo "$stdin" | grep --quiet '^PubkeyAuthentication\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PasswordAuthentication\s*$'
|
echo "$stdin" | grep --quiet '^#PasswordAuthentication\s*$'
|
||||||
|
! echo "$stdin" | grep --quiet '^PasswordAuthentication\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s*$'
|
echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s*$'
|
||||||
|
! echo "$stdin" | grep --quiet '^PermitEmptyPasswords\s*$'
|
||||||
echo "$stdin" | grep --quiet '^#X11Forwarding\s*$'
|
echo "$stdin" | grep --quiet '^#X11Forwarding\s*$'
|
||||||
|
! echo "$stdin" | grep --quiet '^X11Forwarding\s*$'
|
||||||
|
|
||||||
sed '
|
sed '
|
||||||
s|^#PermitRootLogin\s*$|PermitRootLogin no|;
|
s|^#PermitRootLogin\s*$|PermitRootLogin no|;
|
||||||
|
Loading…
Reference in New Issue
Block a user