merge of '15e16e2fd4c5be75a63b28616b413a8d1e13e1d6'

and '2449ac4142097e34b7ad4c4c4cb16c163a786a16'
This commit is contained in:
zab2
2013-11-07 20:39:59 +00:00

View File

@@ -899,10 +899,14 @@ waitforwrapperstop() {
}
create_config_dir() {
if ! mkdir -p "$I2P_CONFIG_DIR"; then
echo "Error creating $I2P_CONFIG_DIR! Edit $0 and set I2P_CONFIG_DIR" >&2
echo "to the correct location." >&2
exit 1
if [ ! -d "$I2P_CONFIG_DIR" ]; then
UMASK=$(awk -F'=' '/^ *wrapper\.umask/{print $2}' $WRAPPER_CONF)
umask $UMASK
if ! mkdir -p "$I2P_CONFIG_DIR"; then
echo "Error creating $I2P_CONFIG_DIR! Edit $0 and set I2P_CONFIG_DIR" >&2
echo "to the correct location." >&2
exit 1
fi
fi
}