updated the deploy function and some minimal styling stuff

This commit is contained in:
2026-03-11 23:23:04 -05:00
parent 7732196059
commit 41024f1fb6
3 changed files with 25 additions and 15 deletions
+14 -11
View File
@@ -1,19 +1,22 @@
!#bin/bash #!/bin/bash
BUILD_DIR="/root" BUILD_DIR="/root"
# move sludge.db sqlite file
mv $BUILD_DIR/build/sludge.db $BUILD_DIR/sludge.db # find newest zip file and extract version
NEWEST_ZIP="$(find "$BUILD_DIR" -maxdepth 1 -name "*.zip" -type f -printf '%T@ %p\n' | sort -rn | head -n 1 | cut -d' ' -f2)"
VERSION="$(basename -s .zip "$NEWEST_ZIP" | cut -d' ' -f2)"
# move sludge.db sqlite file with versioned backup name
cp "$BUILD_DIR/build/sludge.db" "$BUILD_DIR/sludge.db.$VERSION"
# remove build folder # remove build folder
rm -rf $BUILD_DIR/build/ rm -rf "$BUILD_DIR/build/"
# remove old build zip # unzip newest zip file
rm -- "$(ls -rt $BUILD_DIR/*.zip | head -n 1)" unzip "$NEWEST_ZIP"
# unzip new build zip
unzip *.zip
# move db file back # move db file back
mv $BUILD_DIR/sludge.db $BUILD_DIR/build/sludge.db cp "$BUILD_DIR/sludge.db.$VERSION" "$BUILD_DIR/build/sludge.db"
# restart sludge webserver # restart sludge webserver
sudo systemctl restart sludge-info sudo systemctl restart sludge-info
+1 -1
View File
@@ -151,7 +151,7 @@
margin-right: auto; margin-right: auto;
} }
&:hover { &:hover {
color: var(--primary-8); color: var(--primary-3);
} }
} }
button { button {
+10 -3
View File
@@ -56,12 +56,12 @@
<style lang="scss"> <style lang="scss">
button { button {
background: var(--primary-5); background: var(--primary-5);
border-radius: 0.25rem; border-radius: var(--br);
font-size: 2rem; font-size: 1.5rem;
border: none; border: none;
box-shadow: var(--bs); box-shadow: var(--bs);
&:hover { &:hover {
background: var(--primary-7); background: var(--primary-4);
} }
} }
section { section {
@@ -86,12 +86,19 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center;
h3 { h3 {
font-size: 1.75rem; font-size: 1.75rem;
width: fit-content; width: fit-content;
} }
button { button {
// margin: auto 0;
flex-basis: 4rem; flex-basis: 4rem;
height: 4rem;
font-size: 4rem;
line-height: 1rem;
border-radius: 5rem;
font-family: monospace;
} }
} }
} }