Needs to be fixed in Gutsy before an SRU is proposed. The cleanest approach I've seen for this is to do something like:
+ if [ ! -d ${RUNDIR} ] ; then
+ install -o ${USER} -g ${GROUP} -m 755 -d ${RUNDIR} || return 2
+ fi
+
This checks first if the directory exists (you don't want to wipe it out if for some reason more than one instance of the program is run) and then creates it and changes permissions all in one step. Adjust variable names to suite.
Needs to be fixed in Gutsy before an SRU is proposed. The cleanest approach I've seen for this is to do something like:
+ if [ ! -d ${RUNDIR} ] ; then
+ install -o ${USER} -g ${GROUP} -m 755 -d ${RUNDIR} || return 2
+ fi
+
This checks first if the directory exists (you don't want to wipe it out if for some reason more than one instance of the program is run) and then creates it and changes permissions all in one step. Adjust variable names to suite.