fix: restore tree dropped by 6d224861; land stem95su gdrive-sync (10m) [ci skip]
6d224861 came from a --no-checkout worktree whose empty index made the
commit drop every file except two. This restores 05b50d2b's full tree and
correctly adds stacks/stem95su/gdrive-sync.tf + the service-catalog stem95su
entry. Forward-only (parent=6d224861, no force-push); [ci skip] since the
live infra was never applied from the broken commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6d224861c4
commit
fd0f4a0365
1166 changed files with 358546 additions and 0 deletions
23
scripts/server_safe_poweroff/synology_main.sh
Executable file
23
scripts/server_safe_poweroff/synology_main.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This is used to run the main program on synology nas and log all messages to synology's log system
|
||||
|
||||
cd /var/services/homes/Administrator/server-power-cycle
|
||||
echo "Starting powercheck"
|
||||
./powercheck-armv8 -log_dir=./logs
|
||||
|
||||
echo "script completed successfully, logging to synlogy's logs"
|
||||
|
||||
|
||||
while IFS= read -r line; do
|
||||
# for line in $(cat ./logs/powercheck-armv8.INFO); do
|
||||
msg=$(echo $line | grep -E '^[IWEF][0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{6}'| awk '{$1=$2=$3=$4=""; print $0}' | sed 's/^ *//')
|
||||
#echo $line
|
||||
echo $msg
|
||||
if [[ -n $msg ]]; then
|
||||
synologset1 sys info 0x11800000 "$msg"
|
||||
fi
|
||||
done < "./logs/powercheck-armv8.INFO"
|
||||
|
||||
# Cleanup logs
|
||||
find ./logs -type f -mtime +7 -exec rm {} \;
|
||||
Loading…
Add table
Add a link
Reference in a new issue