Allow a config only option for start script
This commit is contained in:
parent
29b3d35b1c
commit
26279ab59d
2 changed files with 4 additions and 14 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -62,6 +62,5 @@ jobs:
|
|||
fi
|
||||
id: check-user-id
|
||||
|
||||
|
||||
- name: Run install script
|
||||
run: sudo ./scripts/start.sh
|
||||
run: sudo ./scripts/start.sh true
|
||||
|
|
|
@ -125,10 +125,11 @@ mv -f "$ENV_FILE" "$ROOT_FOLDER/.env"
|
|||
echo "Running system-info.sh..."
|
||||
bash "${ROOT_FOLDER}/scripts/system-info.sh"
|
||||
|
||||
# ansible-playbook ansible/start.yml -i ansible/hosts -K -e username="$USERNAME"
|
||||
# Give permissions 1000:1000 to app data
|
||||
chown -R 1000:1000 "${ROOT_FOLDER}/app-data"
|
||||
|
||||
## Don't run if config-only
|
||||
if [[ ! "$config_only" == "true" ]]; then
|
||||
if [[ ! $config_only == "true" ]]; then
|
||||
docker-compose --env-file "${ROOT_FOLDER}/.env" pull
|
||||
# Run docker-compose
|
||||
docker-compose --env-file "${ROOT_FOLDER}/.env" up --detach --remove-orphans --build || {
|
||||
|
@ -137,16 +138,6 @@ if [[ ! "$config_only" == "true" ]]; then
|
|||
}
|
||||
fi
|
||||
|
||||
# str=$(get_json_field ${STATE_FOLDER}/apps.json installed)
|
||||
# apps_to_start=($str)
|
||||
|
||||
# for app in "${apps_to_start[@]}"; do
|
||||
# "${ROOT_FOLDER}/scripts/app.sh" start $app
|
||||
# done
|
||||
|
||||
# Give permissions 1000:1000 to app data
|
||||
chown -R 1000:1000 "${ROOT_FOLDER}/app-data"
|
||||
|
||||
echo "Tipi is now running"
|
||||
echo ""
|
||||
cat << "EOF"
|
||||
|
|
Loading…
Add table
Reference in a new issue