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