This commit is contained in:
Mateusz779 2023-04-13 13:38:36 +02:00
parent e361606807
commit d31459288c
2 changed files with 3 additions and 3 deletions

2
app.py
View File

@ -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():

View File

@ -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