-
This commit is contained in:
parent
e361606807
commit
d31459288c
2
app.py
2
app.py
@ -8,7 +8,7 @@ import utils
|
||||
import shutil
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['UPLOAD_FOLDER'] = "configs/squash"
|
||||
app.config['UPLOAD_FOLDER'] = "squash"
|
||||
app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB
|
||||
|
||||
def ssh_thread_function():
|
||||
|
@ -92,8 +92,8 @@ sed -i '1s/.*/['"$name"']/' /tmp/output/vpn/$(basename "$ini")
|
||||
cd /tmp/output
|
||||
mkdir configs
|
||||
mv * configs
|
||||
mkdir -t $CONFIGS/squash
|
||||
mkdir -t $CONFIGS/squash/$name
|
||||
mkdir $CONFIGS/squash
|
||||
mkdir $CONFIGS/squash/$name
|
||||
mksquashfs . $CONFIGS/squash/$name.squashfs
|
||||
cp /tmp/output/configs/vpn/$name.pub $CONFIGS/squash/$name.pub
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user