Compare commits
2 Commits
09539b5866
...
f67e142f53
| Author | SHA1 | Date | |
|---|---|---|---|
| f67e142f53 | |||
| 8165bf6935 |
@@ -67,7 +67,7 @@ in {
|
||||
sleep 2
|
||||
done
|
||||
|
||||
INSTALLED=$($OCC status --output=json | grep -o '"installed":false')
|
||||
INSTALLED=$($OCC status --output=json | grep -o '"installed":true')
|
||||
if [ -z "$INSTALLED" ]; then
|
||||
echo "Running first-time setup..."
|
||||
|
||||
@@ -75,7 +75,8 @@ in {
|
||||
--admin-user "$DEFAULT_ADMIN_USERNAME" \
|
||||
--admin-pass "$DEFAULT_ADMIN_PASSWORD"
|
||||
fi
|
||||
if [ -z "$INSTALLED" ]; then
|
||||
if [ -z "$INSTALLED" ] || [ -f "/tmp/force-nextcloud-setup" ]; then
|
||||
rm -f "/tmp/force-nextcloud-setup"
|
||||
echo "Applying Settings..."
|
||||
|
||||
$OCC config:system:set default_phone_region --value="CH"
|
||||
|
||||
@@ -57,7 +57,7 @@ in
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "360s";
|
||||
EnvironmentFile = lib.mkIf (containerSet.setup.envFile != null) containerSet.setup.envFile;
|
||||
EnvironmentFile = if (containerSet.setup ? envFile) then containerSet.setup.envFile else [ ];
|
||||
ExecStart = "${containerSet.setup.script}";
|
||||
RemainAfterExit = true;
|
||||
User = "root";
|
||||
|
||||
Reference in New Issue
Block a user