2023-12-30 16:32:52 +01:00
|
|
|
|
#!/usr/bin/env bash
|
2018-09-03 20:06:05 +02:00
|
|
|
|
# The home-server project produces a multi-purpose setup using Ansible.
|
2023-07-30 19:31:56 +02:00
|
|
|
|
# Copyright © 2018–2023 Y. Gablin, under the GPL-3.0-or-later license.
|
2018-09-03 20:06:05 +02:00
|
|
|
|
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
|
|
|
|
|
|
|
|
|
. "$(dirname "$0")/.etc_checkroot.inc"
|
|
|
|
|
cd /etc
|
|
|
|
|
etckeeper init
|
|
|
|
|
echo /.updated >>.gitignore
|
|
|
|
|
git config user.email {{git_contact_email}}; git config user.name root
|
|
|
|
|
git add -A
|
|
|
|
|
git ls-files | grep -qxF .updated && git rm --cached .updated
|
|
|
|
|
git commit -m 'upstream init'
|
|
|
|
|
git branch run master
|
|
|
|
|
"$(dirname "$0")/etc_stop_upstream" 'upstream init'
|