简体   繁体   中英

cannot create directory on debian when trying to install files from Github

so I'm trying to install outline VPN on my debian machine.

The code I'm using to install is

sudo curl -sSL https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | bash

It then says this(which it is supposed to):

> Verifying that Docker is installed .......... OK
> Verifying that Docker daemon is running ..... OK

and then this:

mkdir: cannot create directory ‘/opt/outline’: Permission denied

I'm not expecting any errors, in fact, this has worked for thousands of others. Any help is appreciated, thank you!

Change to command to:

curl -sSL https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | sudo bash

The reason is that: the install_server.sh is executed with bash by normal user priviledges.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM