chore(docs): GitHub repo URLs, remove .cursor from git, mirror scripts
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# === Конфигурация скрипта ===
|
||||
UPDATE_DIR="/opt/scripts/update"
|
||||
SCRIPT_NAME="ssh-monitor"
|
||||
REPO_URL="https://git.kalinamall.ru/PapaTramp/ssh-monitor.git"
|
||||
REPO_URL="https://github.com/PTah/ssh-monitor.git"
|
||||
LOCAL_SCRIPT_PATH="/usr/local/bin/ssh-monitor"
|
||||
LOG_FILE="/var/log/update_script.log"
|
||||
|
||||
@@ -339,7 +339,7 @@ get_git_short_rev() {
|
||||
git -C "$repo_dir" rev-parse --short HEAD 2>/dev/null || printf 'unknown'
|
||||
}
|
||||
|
||||
# Remote kalinamall или origin с URL git.kalinamall.ru (не GitHub).
|
||||
# Remote с URL закрытого зеркала (не GitHub), если настроен.
|
||||
resolve_git_remote_name() {
|
||||
local repo="$1" name url
|
||||
if git -C "$repo" remote get-url kalinamall &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user