[fix-permissions] Use sudo password for permission for /usr/local
This commit is contained in:
parent
91b55bad5e
commit
46db0b7f14
3
install
3
install
@ -17,7 +17,8 @@ fi
|
||||
abort () {
|
||||
exec echo "Installation aborted"
|
||||
}
|
||||
mkdir -p $(dirname $CONF_PATH) || abort
|
||||
sudo mkdir -p $(dirname $CONF_PATH) || abort
|
||||
sudo chown $USER $(dirname $CONF_PATH)
|
||||
if [ ! -f $CONF_PATH ]; then
|
||||
if [ ! -f $OLD_CONF_PATH ]; then
|
||||
# old config file not found, create from scratch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user