- Fix vyprvpn up & down script,
- Fix LOG use in default.bash.
This commit is contained in:
@@ -186,7 +186,7 @@ var_assign()
|
||||
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
# file_lock
|
||||
# file_dir_init
|
||||
#--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
file_dir_init()
|
||||
@@ -200,7 +200,7 @@ file_dir_init()
|
||||
|
||||
if [[ "$( id -u)" != "0" ]]
|
||||
then
|
||||
${LOG} "Can't perform file init of: [${File}] as non root user!"
|
||||
${ECHO} "Can't perform file init of: [${File}] as non root user!"
|
||||
else
|
||||
if [ ! -f ${File} ]
|
||||
then
|
||||
@@ -208,14 +208,14 @@ file_dir_init()
|
||||
|
||||
if [ ! -d ${dir} ]
|
||||
then
|
||||
${LOG} "Initializing directory: [${dir}]"
|
||||
${ECHO} "Initializing directory: [${dir}]"
|
||||
|
||||
mkdir ${dir}
|
||||
chmod ug+rwx ${dir}
|
||||
chown ${Owner}:${Group} ${dir}
|
||||
fi
|
||||
|
||||
${LOG} "Initializing file: [${File}]"
|
||||
${ECHO} "Initializing file: [${File}]"
|
||||
|
||||
>${File}
|
||||
chmod ug+rw ${File}
|
||||
|
||||
Reference in New Issue
Block a user