Finished up switching from .sh to .py
parent
0e5606d493
commit
1187cac5e1
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
|
||||
# Fix some permissions
|
||||
os.system("mkdir -p /data/gpg")
|
||||
os.system("chown -R www-data:www-data /data")
|
||||
|
||||
# Run apache
|
||||
os.execv("/usr/local/bin/apache2-foreground", ["apache2-foreground"])
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fix some permissions
|
||||
mkdir -p /data/gpg
|
||||
chown -R www-data:www-data /data
|
||||
|
||||
# Run apache
|
||||
exec apache2-foreground
|
Loading…
Reference in New Issue