mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
ssh and mkinitcpio fixes
This commit is contained in:
parent
62ad378611
commit
9d0d89cbf1
@ -2,7 +2,7 @@
|
|||||||
_pkgname=mkinitcpio
|
_pkgname=mkinitcpio
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.8
|
pkgver=0.0.9
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="mkinitcpio configuration"
|
pkgdesc="mkinitcpio configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -6,16 +6,16 @@
|
|||||||
stdin=$(cat)
|
stdin=$(cat)
|
||||||
|
|
||||||
# assert MODULES is empty
|
# assert MODULES is empty
|
||||||
echo "$stdin" | grep '^MODULES=()'
|
echo "$stdin" | grep --quiet '^MODULES=()'
|
||||||
|
|
||||||
# assert HOOKS is as expected
|
# assert HOOKS is as expected
|
||||||
echo "$stdin" | grep '^HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)'
|
echo "$stdin" | grep --quiet '^HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)'
|
||||||
|
|
||||||
# assert no COMPRESSION option is enabled yet
|
# assert no COMPRESSION option is enabled yet
|
||||||
! echo "$stdin" | grep '^COMPRESSION='
|
! echo "$stdin" | grep --quiet '^COMPRESSION='
|
||||||
|
|
||||||
# assert lz4 COMPRESSION is uncommented
|
# assert lz4 COMPRESSION is uncommented
|
||||||
echo "$stdin" | grep '^#COMPRESSION="lz4"'
|
echo "$stdin" | grep --quiet '^#COMPRESSION="lz4"'
|
||||||
|
|
||||||
# 1) add to MODULES; 2 replace HOOKS; 3) uncomment lz4 COMPRESSION
|
# 1) add to MODULES; 2 replace HOOKS; 3) uncomment lz4 COMPRESSION
|
||||||
sed '
|
sed '
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
_pkgname=ssh
|
_pkgname=ssh
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.2
|
pkgver=0.0.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ssh with configuration"
|
pkgdesc="ssh with configuration"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
# save stdin (content of /etc/ssh/sshd_config) in variable
|
# save stdin (content of /etc/ssh/sshd_config) in variable
|
||||||
stdin=$(cat)
|
stdin=$(cat)
|
||||||
|
|
||||||
# asertions
|
# assertions
|
||||||
echo "$stdin" | grep '^UsePAM yes$'
|
echo "$stdin" | grep '^UsePAM yes$'
|
||||||
#
|
#
|
||||||
echo "$stdin" | grep '^#PermitRootLogin\s.*$'
|
echo "$stdin" | grep --quiet '^#PermitRootLogin\s.*$'
|
||||||
echo "$stdin" | grep '^#PubkeyAuthentication\s.*$'
|
echo "$stdin" | grep --quiet '^#PubkeyAuthentication\s.*$'
|
||||||
echo "$stdin" | grep '^#PasswordAuthentication\s.*$'
|
echo "$stdin" | grep --quiet '^#PasswordAuthentication\s.*$'
|
||||||
echo "$stdin" | grep '^#PermitEmptyPasswords\s.*$'
|
echo "$stdin" | grep --quiet '^#PermitEmptyPasswords\s.*$'
|
||||||
echo "$stdin" | grep '^#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