post-install script as root
Hi, I have a problem running the post-install scripts. They don't seem to run as root. I need to run them as root because I try to mount a nfs partition. <scripts> <post-scripts config:type="list"> <script> <filename>post_install.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[#!/bin/sh # # post_install.sh mkdir -p /mnt/tmp mount -t nfs 14x.xxx.xx.xxx:/xx/x/x /mnt/tmp cp -r /mnt/tmp/xx/x/x/x/* /usr/local umount /mnt/tmp echo "Post Install done." > /var/log/post_install.log ]]> </source> </script> </post-scripts> </scripts> I get an error "Mount - Only root can do that". (SuSE 8.2, autoyast2-2.7.18-1) Any suggestions? Thomas ------------------------------------- Siemens AG Dipl.-Inform. Thomas Schulte ICM CP RD SD 23 Frankenstr.2 46393 Bocholt +49 2871 91 2156 schulte@siemens.com -------------------------------------
participants (1)
-
Schulte Thomas ICM Bocholt