diff --git a/data/scripts/Makefile.am b/data/scripts/Makefile.am index ab8896327..fdd502032 100644 --- a/data/scripts/Makefile.am +++ b/data/scripts/Makefile.am @@ -1,8 +1,11 @@ -# FIXME! -# -#installdir = $(BINDIR) -# -#install_DATA = \ -# backup.sh \ -# restore.sh -# \ No newline at end of file +installdir = $(DESTDIR)$(bindir) + +install_DATA = \ + backup.sh \ + restore.sh \ + install.sh + +install-data-hook: + chmod 0755 $(DESTDIR)$(bindir)/backup.sh + chmod 0755 $(DESTDIR)$(bindir)/restore.sh + chmod 0755 $(DESTDIR)$(bindir)/install.sh \ No newline at end of file diff --git a/data/scripts/install.sh b/data/scripts/install.sh new file mode 100755 index 000000000..277f305bc --- /dev/null +++ b/data/scripts/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# 1st arg is dir where unpack, $2 file to be installed + +cd $1 +tar zxvf $2 +./temp_inst/ctrl/preinstall.sh $PWD +cp -a ./temp_inst/inst/* / +./temp_inst/ctrl/postinstall.sh $PWD +rm -rf temp_inst +exit 0 +