Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA Updates #32

Merged
merged 95 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
75e4dd0
OTA base
mayankchhabra Jul 9, 2020
75cb81c
Update execution process
mayankchhabra Jul 10, 2020
723b302
Links to files
mayankchhabra Jul 10, 2020
0458113
Add require key
mayankchhabra Jul 10, 2020
81f51e7
Added fswatch link
mayankchhabra Jul 10, 2020
815fdff
Hard-code path for now
mayankchhabra Jul 10, 2020
2e46194
Merge branch 'master' into ota-updates
mayankchhabra Jul 10, 2020
2c73cf8
Change to personal repo
mayankchhabra Jul 11, 2020
380ef47
Use personal images for now
mayankchhabra Jul 13, 2020
8a86916
Merge branch 'master' into ota-updates
mayankchhabra Jul 13, 2020
db901b4
Change signal file path
mayankchhabra Jul 13, 2020
29673d2
Formatting
mayankchhabra Jul 13, 2020
a3e85b4
Pipe install
mayankchhabra Jul 13, 2020
1e2edd5
Emulate new beta
mayankchhabra Jul 13, 2020
ccd8f28
Requires condition
mayankchhabra Jul 14, 2020
54fdcbb
Merge branch 'master' into ota-updates
mayankchhabra Jul 15, 2020
d483a88
Update with karen
mayankchhabra Jul 15, 2020
75a16b5
Add limitations
mayankchhabra Jul 15, 2020
8cbb2d9
Merge branch 'master' into ota-updates
mayankchhabra Jul 15, 2020
1bbc63d
JSON markdown
mayankchhabra Jul 15, 2020
4d778fe
Minimum version clarity
mayankchhabra Jul 15, 2020
5c048b7
Fix mistake in execution flow (#1)
lukechilds Jul 15, 2020
8a8f94c
Update bash path
mayankchhabra Jul 16, 2020
69c7b7f
Loud fail
mayankchhabra Jul 16, 2020
40e9c5b
Use named variables
mayankchhabra Jul 16, 2020
9e080a7
Loud fail and bash path
mayankchhabra Jul 16, 2020
722a0a9
Don't nuke backup
mayankchhabra Jul 16, 2020
31d2ca2
Remove backticks
mayankchhabra Jul 16, 2020
6d036a9
Use gnused
mayankchhabra Jul 16, 2020
fcddfeb
Remove whoami
mayankchhabra Jul 16, 2020
3c37006
Loop over *-run.sh scripts
mayankchhabra Jul 16, 2020
95eda07
Remove test.sh
mayankchhabra Jul 16, 2020
8af32e9
Merge branch 'master' into ota-updates
mayankchhabra Jul 16, 2020
c00de6f
Remove conflicts
mayankchhabra Jul 16, 2020
9db5da8
Don't use /tmp
mayankchhabra Jul 16, 2020
80c0f32
Use .updateignore
mayankchhabra Jul 16, 2020
d0056fb
Remove test script
mayankchhabra Jul 16, 2020
cb48928
Use correct images
mayankchhabra Jul 16, 2020
c4aa4f5
Use exclude-from option
mayankchhabra Jul 16, 2020
5876faf
Ignore .* files
mayankchhabra Jul 17, 2020
a853e9a
Use jq
mayankchhabra Jul 17, 2020
72b966d
Remove signal file check
mayankchhabra Jul 17, 2020
735b5e2
Clone branch only for now
mayankchhabra Jul 17, 2020
fe37698
Loosen up update trigger
mayankchhabra Jul 17, 2020
c34a2d6
Write updateTo
mayankchhabra Jul 17, 2020
5f8ecd7
Pull with Umbrel user
mayankchhabra Jul 17, 2020
b858d1f
Try personal Tor image
mayankchhabra Jul 17, 2020
c6d68f3
Specify tor user
mayankchhabra Jul 17, 2020
a9a28ef
Remove umbrel user logic
mayankchhabra Jul 17, 2020
87e7669
Correct directories
mayankchhabra Jul 17, 2020
5bb7818
Update envs
mayankchhabra Jul 18, 2020
78b192b
Merge branch 'master' into ota-updates
mayankchhabra Jul 18, 2020
55bcd4e
v0.1.4-beta.2
mayankchhabra Jul 18, 2020
76259e1
v0.1.4-beta.3
mayankchhabra Jul 18, 2020
62b9e86
v0.1.4-beta.4
mayankchhabra Jul 18, 2020
55015b2
Umbrel v0.1.4 Beta 5
mayankchhabra Jul 18, 2020
c323d83
v0.1.4-beta.2
mayankchhabra Jul 18, 2020
7d8685d
v0.1.4-beta.2
mayankchhabra Jul 18, 2020
59307ab
v0.1.4-beta.3
mayankchhabra Jul 18, 2020
30355a4
v0.1.4-beta.4
mayankchhabra Jul 18, 2020
c7fd7c1
v0.1.4-beta.5
mayankchhabra Jul 18, 2020
d1c416d
Use personal repo
mayankchhabra Jul 18, 2020
41a3de9
Fix tor permissions
mayankchhabra Jul 18, 2020
1b6da87
Set hostname
mayankchhabra Jul 18, 2020
024be65
v0.1.4-beta.2
mayankchhabra Jul 18, 2020
8bc7395
v0.1.4-beta.3
mayankchhabra Jul 18, 2020
11ea3f3
v0.1.4-beta.4
mayankchhabra Jul 18, 2020
87878ae
v0.1.4-beta.5
mayankchhabra Jul 18, 2020
111eb73
Update status clarity
mayankchhabra Jul 18, 2020
77dc674
Clean up trailing spaces in readme
lukechilds Jul 21, 2020
0c71c46
Fix typo in readme
lukechilds Jul 21, 2020
d952092
installeed => installed
lukechilds Jul 21, 2020
e22bf1f
continuosly => continuously
lukechilds Jul 21, 2020
d996857
Fix missing newlines and trailing spaces in scripts
lukechilds Jul 21, 2020
6fa0c84
Quote variables to prevent globbing and word splitting
lukechilds Jul 21, 2020
d972a42
Add verification improvement
lukechilds Jul 21, 2020
cd0aabc
Merge pull request #5 from lukechilds/ota-fixes
mayankchhabra Jul 21, 2020
3171d8e
Update to official repos/images
mayankchhabra Jul 21, 2020
98ae315
Correct links
mayankchhabra Jul 21, 2020
76d8cf6
Dashboard version
mayankchhabra Jul 21, 2020
47a4bd8
Uncomment Docker image prune
mayankchhabra Jul 21, 2020
6eb8d3a
Configure mainnet by-default
mayankchhabra Jul 21, 2020
e22c97e
Remove
mayankchhabra Jul 21, 2020
ae6d0b9
Add some missing quotes
lukechilds Jul 21, 2020
170a83b
update trigger cleanup
lukechilds Jul 21, 2020
d9366b8
Quote variables in update trigger
lukechilds Jul 21, 2020
988eb14
Merge pull request #6 from lukechilds/more-ota-fixes
mayankchhabra Jul 21, 2020
cc1f27e
UPDATE_VERSION_FILE -> UMBREL_VERSION_FILE
mayankchhabra Jul 21, 2020
ee13b0f
Merge branch 'ota-updates' of https://github.com/mayankchhabra/umbrel…
mayankchhabra Jul 21, 2020
99182a5
Try an update flow again
mayankchhabra Jul 22, 2020
f522e58
Update required range for testing
mayankchhabra Jul 22, 2020
8e645c5
Revert versions
mayankchhabra Jul 22, 2020
8f55594
Remove signals/ from .updateignore
mayankchhabra Jul 22, 2020
960deb5
Bump versions
mayankchhabra Jul 22, 2020
8a15fcf
Remove commented code
mayankchhabra Jul 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't nuke backup
  • Loading branch information
mayankchhabra committed Jul 16, 2020
commit 722a0a9ce093950cd83c47437b7bf6b05539200f
11 changes: 7 additions & 4 deletions bin/update/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ echo "========= Stage: Pre-update ==========="
echo "======================================="
echo

# Make sure any previous backup doesn't exist
if [[ -d /tmp/umbrel-backup ]]; then
echo "Cannot install update. A previous backup already exists at /tmp/umbrel-backup"
echo "This can only happen if the previous update installation wasn't successful"
exit 1
fi

echo "Installing Umbrel $RELEASE at $UMBREL_ROOT"

# Update status file
cat <<EOF > $UMBREL_ROOT/statuses/update-status.json
{"state": "installing", "progress": 20, "description": "Backing up"}
EOF

# Cleanup just in case there's temp stuff lying around from previous update
echo "Cleaning up any previous backup"
[ -d /tmp/umbrel-backup ] && rm -rf /tmp/umbrel-backup

# Fix permissions
echo "Fixing permissions"
chown -R $UMBREL_USER:$UMBREL_USER $UMBREL_ROOT/
Expand Down
2 changes: 1 addition & 1 deletion bin/update/03-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo "Removing backup"
cat <<EOF > $UMBREL_ROOT/statuses/update-status.json
{"state": "installing", "progress": 95, "description": "Removing backup"}
EOF
[ -d /tmp/umbrel-backup ] && rm -rf /tmp/umbrel-backup
[[ -d /tmp/umbrel-backup ]] && rm -rf /tmp/umbrel-backup

echo "Successfully installed Umbrel $RELEASE"
cat <<EOF > $UMBREL_ROOT/statuses/update-status.json
Expand Down