The aim of this Project is to create a deamon for a server, wich update live systems.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remaster/gendeb.sh

39 lines
687 B

#!/bin/bash
# at the moment only generate dir structure in /build
#####################
## setup build dir ##
#####################
rootdir=build
echo "clear build"
[ -d $rootdir ] && rm -v -R $rootdir
mkdir $rootdir
######################
## skripte copieren ##
######################
echo "copy files"
# remaster
mkdir -p $rootdir/usr/bin/
cp -v src/remaster.sh $rootdir/usr/bin/remaster
chmod +x $rootdir/usr/bin/remaster
# modules
mkdir -p $rootdir/usr/lib/remaster/
for i in dist functions mods; do
cp -v src/$i/* $rootdir/usr/lib/remaster/
done
# setting
cp -v src/config.sample.cfg $rootdir/etc/remaster/config.sample.cfg
# Pfade anpassen
#sed ...
#mkdeb...
#not jet