Commit dcf3e1a7 authored by Paolo Dongilli's avatar Paolo Dongilli

added copy of required file in debian/postinst

parent c902db39
Pipeline #42 passed with stages
in 16 minutes and 52 seconds
......@@ -50,11 +50,13 @@ sed -i "s+/srv/clonezilla+$SFTPDIR+g" /srv/tftp/pxelinux.cfg/default
mkdir -p $SFTPDIR
cp -R /usr/share/fuss-fucc/clonezilla/clientScripts ${SFTPDIR}
test -e ${SFTPDIR}/computerList.txt || cp /usr/share/fuss-fucc/clonezilla/computerList.txt ${SFTPDIR}
cp /usr/share/fuss-fucc/clonezilla/script ${SFTPDIR}
chown -R clonezilla. ${SFTPDIR}/clientScripts
chmod -R 770 ${SFTPDIR}/clientScripts
chown clonezilla. ${SFTPDIR}/computerList.txt
chown clonezilla. ${SFTPDIR}/script
chmod 770 ${SFTPDIR}/script
mkdir -p /etc/fuss-fucc
echo $SFTPDIR > /etc/fuss-fucc/sftpdir
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment