writing a shell script if statement to check for directory
Posted
by
user1553248
on Stack Overflow
See other posts from Stack Overflow
or by user1553248
Published on 2012-08-27T21:35:57Z
Indexed on
2012/08/27
21:38 UTC
Read the original article
Hit count: 166
I need to write a script that will recreate my opt folder if it gets deleted when I remove a package from it. Here's a link to my previous post: dpkg remove to stop processes
Now, the issue I'm running into could be better described here: http://lists.debian.org/debian-devel/2006/03/msg00242.html
I was thinking of just adding a postrem script which checks if an opt directory exists, and if not, creates one. My experience with shell scripts is pretty limited though..
© Stack Overflow or respective owner