mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 10:44:30 +01:00
adding creation of a ext4 partition
This commit is contained in:
parent
97773549e0
commit
13c4e67346
@ -3,8 +3,23 @@
|
||||
if ! [ -z "$TRAVIS" ]
|
||||
then
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install ldap-utils slapd -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install kpartx -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install lsb-base libattr1 -t wheezy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install samba python-samba samba-vfs-modules -t wheezy-backports -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||
truncate -s 512M file.img
|
||||
fdisk file.img <<EOF
|
||||
n
|
||||
p
|
||||
1
|
||||
|
||||
|
||||
|
||||
w
|
||||
q
|
||||
EOF
|
||||
kpartx -a file.img
|
||||
mkfs.ext4 /dev/mapper/loop0p1
|
||||
mount /dev/mapper/loop0p1 /var/lib/samba/
|
||||
else
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install ldap-utils slapd samba python-samba samba-vfs-modules -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||
fi
|
||||
@ -20,9 +35,6 @@ rm /etc/ldap/slapd.d/cn\=config/*mdb*
|
||||
ldapadd -H ldap://localhost:390 -x -D "cn=admin,dc=example,dc=org" -f /etc/ldap/content.ldif -w password
|
||||
sed -i "s/\(127.0.0.1.*\)/\1 ldap.ldapcherry.org ad.ldapcherry.org/" /etc/hosts
|
||||
|
||||
|
||||
mount -o remount,acl /
|
||||
|
||||
df -h
|
||||
|
||||
smbconffile=/etc/samba/smb.conf
|
||||
|
Loading…
Reference in New Issue
Block a user