Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #post-install script?... # LN# 476-508 of /usr/local/petget/installpkg.sh (tahrpup) -
- # puppy slackware debian/ubuntu/etc
- for i in /pinstall.sh /install/doinst.sh /DEBIAN/postinst
- do
- [ ! -e "$i" ] && continue
- chmod +x ${i}
- cd /
- LANG=$LANG_USER nohup sh ${i} &
- sleep 0.2
- rm -f ${i}
- done
- #130314 run arch linux pkg post-install script...
- if [ -f /.INSTALL ];then #arch post-install script.
- if [ -f /usr/local/petget/ArchRunDotInstalls ];then #precaution. see 3builddistro, script created by noryb009.
- #this code is taken from below...
- dlPATTERN='|'"`echo -n "$DLPKG_BASE" | sed -e 's%\\-%\\\\-%'`"'|'
- archVER="`cat /tmp/petget_missing_dbentries-Packages-* | grep "$dlPATTERN" | head -n 1 | cut -f 3 -d '|'`"
- if [ "$archVER" ];then #precaution.
- cd /
- mv -f .INSTALL .INSTALL1-${archVER}
- cp -a /usr/local/petget/ArchRunDotInstalls /ArchRunDotInstalls
- LANG=$LANG_USER /ArchRunDotInstalls
- rm -f ArchRunDotInstalls
- rm -f .INSTALL*
- fi
- fi
- fi
- #v424 .pet pkgs may have a post-uninstall script...
- if [ -f /puninstall.sh ];then
- mv -f /puninstall.sh /root/.packages/${DLPKG_NAME}.remove
- fi
Advertisement
Add Comment
Please, Sign In to add comment