Skip to content

Commit ca90165

Browse files
committed
feat: migration step
1 parent 9be1ab1 commit ca90165

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Scripts/install.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Usage: $0 [options]
7373
m : no the[m]e reinstallations
7474
t : [t]est run without executing (-irst to dry run all)
7575
76-
NOTE:
76+
NOTE:
7777
running without args is equivalent to -irs
7878
to ignore nvidia, run -irsn
7979
@@ -279,6 +279,25 @@ EOF
279279
"${scrDir}/install_pst.sh"
280280
fi
281281

282+
283+
#---------------------------#
284+
# run migrations #
285+
#---------------------------#
286+
if [ ${flg_Restore} -eq 1 ]; then
287+
288+
migrationDir="$(realpath "$(dirname "$(realpath "$0")")/../migrations")"
289+
290+
echo "Running migrations from: ${migrationDir}"
291+
292+
migrationFile=$(ls "${migrationDir}" | sort -r | head -n 1)
293+
294+
echo "Found migration file: ${migrationFile}"
295+
296+
sh "${migrationDir}/${migrationFile}"
297+
298+
299+
fi
300+
282301
#------------------------#
283302
# enable system services #
284303
#------------------------#

migrations/20250814.sh renamed to migrations/20250815.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33

44
echo "Reloading Hyde shell shaders..."
55
hyde-shell shaders --reload
6+
7+

0 commit comments

Comments
 (0)