su | post section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I am trying to run some sqls at the post installation of the RPM.At the beginning of the %post section, i am doing a su - <user> . But the sqls are getting executed as root itself. So if oracle home is not set in the root home, it will throw some error. and i cannot guarantee that oracle_home will be set for  root in where all i install this  RPM. How can i ensure that my sqls will get executed  as the  user to which i am switching to ??

Thanks in Advance

Lis
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux