From a08e935fc4119bc64a45c51ac926399e6df1b427 Mon Sep 17 00:00:00 2001 From: M33 <327-m33@git.qoto.org> Date: Sat, 1 Jan 2022 21:09:46 +0000 Subject: [PATCH 1/2] Add LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ff22a3a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 M33 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 0f17e458c7fb63a7432fcb893a6bb4b72ab32b24 Mon Sep 17 00:00:00 2001 From: M33 <327-m33@git.qoto.org> Date: Sat, 1 Jan 2022 21:13:49 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63f50ab..d0e5887 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,19 @@ Deploying your misskey instance on arm64 using docker is pretty straightforward, # Scripts list: -## start_misskey.sh stop_misskey.sh update_misskey.sh -In a small VPS, or a limited computer like the rapsberry, or just because systemd, you may want to start stop and update misskey with simple scripts like this. +## start_misskey.sh stop_misskey.sh +In a small VPS, or a limited computer like the rapsberry, or just because systemd, you may want to start and stop misskey with simple scripts like this. For automatic start on boot, you may add this to your crontab: `@reboot /usr/local/bin/start_misskey.sh 1>>/var/log/syslog 2>&1` +## check_update_misskey_git.sh +This script tries to determine if an update is needed, without pulling all source code from Misskey's github depot. +Return 1 if an update is detected. + +## update_misskey.sh +Handles the grunt work for a git update, and containers rebuild. +It takes care of code base backup, you really should take care of database (and maybe data files) backup before upgrading. To this day Misskey updates have not always been a smooth road. +It may automatically restart your instance to apply the update. + ## backup_postgres.sh A daily backup for your docker postgresql database, run it daily It will cycle with the day of week (1..7)