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