26 lines
490 B
Bash
26 lines
490 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
# Install missing packets
|
||
|
PACKAGES_LIST="libnet-ldap-perl libxml-libxml-perl"
|
||
|
|
||
|
if ! whereis dpkg > /dev/null 2> /dev/null
|
||
|
then
|
||
|
aptitude install dpkg
|
||
|
fi
|
||
|
|
||
|
for PK in $PACKAGES_LIST
|
||
|
do
|
||
|
if ! dpkg -l | grep "^ii" | grep "$PK" > /dev/null 2> /dev/null
|
||
|
then
|
||
|
aptitude install "$PK"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
|
||
|
# Add intradmin user if missing
|
||
|
if ! getent passwd | grep "intradmin:" > /dev/null 2> /dev/null
|
||
|
then
|
||
|
useradd --shell /bin/false --uid 942 intradmin
|
||
|
fi
|
||
|
|
||
|
echo "System ready!"
|