Skip to content

Commit 40e89cd

Browse files
committed
chore: fix verify_install.sh
1 parent b18130b commit 40e89cd

File tree

1 file changed

+1
-46
lines changed
  • plugin/source/dynamix.unraid.net/usr/local/share/dynamix.unraid.net/install/scripts

1 file changed

+1
-46
lines changed

plugin/source/dynamix.unraid.net/usr/local/share/dynamix.unraid.net/install/scripts/verify_install.sh

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -115,49 +115,14 @@ else
115115
fi
116116
TOTAL_ERRORS=$((TOTAL_ERRORS + CONFIG_ERRORS))
117117

118-
# Check for proper Slackware-style startup configuration
119-
echo "Checking startup configuration..."
120-
STARTUP_ERRORS=0
121-
122-
# Check if rc.M or rc.local files contain unraid-api start command
123-
STARTUP_FOUND=0
124-
for RC_FILE in "/etc/rc.d/rc.M" "/etc/rc.d/rc.local"; do
125-
if [ -f "$RC_FILE" ] && grep -q "rc.unraid-api" "$RC_FILE"; then
126-
printf '%s✓%s File %s contains unraid-api startup command\n' "$GREEN" "$NC" "$RC_FILE"
127-
STARTUP_FOUND=1
128-
fi
129-
done
130-
131-
if [ $STARTUP_FOUND -eq 0 ]; then
132-
printf '%s✗%s No startup configuration found for unraid-api in rc.M or rc.local\n' "$RED" "$NC"
133-
STARTUP_ERRORS=$((STARTUP_ERRORS + 1))
134-
fi
135-
136-
# Check if rc.M or rc.local files contain flash_backup start command
137-
if [ -f "/etc/rc.d/rc.flash_backup" ]; then
138-
FLASH_BACKUP_STARTUP_FOUND=0
139-
for RC_FILE in "/etc/rc.d/rc.M" "/etc/rc.d/rc.local"; do
140-
if [ -f "$RC_FILE" ] && grep -q "rc.flash_backup" "$RC_FILE"; then
141-
printf '%s✓%s File %s contains flash_backup startup command\n' "$GREEN" "$NC" "$RC_FILE"
142-
FLASH_BACKUP_STARTUP_FOUND=1
143-
fi
144-
done
145-
146-
if [ $FLASH_BACKUP_STARTUP_FOUND -eq 0 ]; then
147-
printf '%s✗%s No startup configuration found for flash_backup in rc.M or rc.local\n' "$RED" "$NC"
148-
STARTUP_ERRORS=$((STARTUP_ERRORS + 1))
149-
fi
150-
fi
151-
TOTAL_ERRORS=$((TOTAL_ERRORS + STARTUP_ERRORS))
152-
153118
# Check for proper Slackware-style shutdown configuration
154119
echo "Checking shutdown configuration..."
155120
SHUTDOWN_ERRORS=0
156121

157122
# Check for package-provided shutdown scripts in rc6.d directory
158123
echo "Checking for shutdown scripts in rc6.d..."
159124
if [ -f "/etc/rc.d/rc.flash_backup" ]; then
160-
if [ -x "/etc/rc.d/rc6.d/K10flash_backup" ]; then
125+
if [ -x "/etc/rc.d/rc6.d/K10flash-backup" ]; then
161126
printf '%s✓%s Shutdown script for flash_backup exists and is executable\n' "$GREEN" "$NC"
162127
else
163128
printf '%s✗%s Shutdown script for flash_backup missing or not executable\n' "$RED" "$NC"
@@ -183,15 +148,6 @@ else
183148
SHUTDOWN_ERRORS=$((SHUTDOWN_ERRORS + 1))
184149
fi
185150

186-
# Check specific runlevel scripts for rc.0 and rc.6
187-
for RCFILE in "/etc/rc.d/rc.0" "/etc/rc.d/rc.6"; do
188-
if [ -f "$RCFILE" ] && grep -q "rc.unraid-api" "$RCFILE"; then
189-
printf '%s✓%s rc.unraid-api entry found in %s\n' "$GREEN" "$NC" "$RCFILE"
190-
else
191-
printf '%s✗%s rc.unraid-api entry not found in %s\n' "$RED" "$NC" "$RCFILE"
192-
SHUTDOWN_ERRORS=$((SHUTDOWN_ERRORS + 1))
193-
fi
194-
done
195151
TOTAL_ERRORS=$((TOTAL_ERRORS + SHUTDOWN_ERRORS))
196152

197153
# Check if unraid-api is in path
@@ -216,7 +172,6 @@ echo "- Executable files errors: $EXEC_ERRORS"
216172
echo "- Directory errors: $DIR_ERRORS"
217173
echo "- Symlink errors: $SYMLINK_ERRORS"
218174
echo "- Configuration errors: $CONFIG_ERRORS"
219-
echo "- Startup configuration errors: $STARTUP_ERRORS"
220175
echo "- Shutdown configuration errors: $SHUTDOWN_ERRORS"
221176
echo "- Total errors: $TOTAL_ERRORS"
222177

0 commit comments

Comments
 (0)