Install syncthing via rpm-ostree; remove unused scrpts
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
#/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
systemctl enable crond
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
VERSION=v0.7.23
|
|
||||||
|
|
||||||
wget -q https://github.com/earthly/earthly/releases/download/$VERSION/earthly-linux-amd64 -O /usr/bin/earthly
|
|
||||||
chmod +x /usr/bin/earthly
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -oue pipefail
|
|
||||||
|
|
||||||
VERSION="v1.27.1"
|
|
||||||
BASE_URL="https://github.com/syncthing/syncthing/releases/download"
|
|
||||||
FILENAME="syncthing-linux-amd64-${VERSION}.tar.gz"
|
|
||||||
EXTRACTED_DIR="syncthing-linux-amd64-${VERSION}"
|
|
||||||
|
|
||||||
# Download the file
|
|
||||||
wget --quiet "${BASE_URL}/${VERSION}/${FILENAME}"
|
|
||||||
|
|
||||||
# Extract the file
|
|
||||||
tar xf "${FILENAME}"
|
|
||||||
|
|
||||||
# Move the binary to /usr/local/bin
|
|
||||||
mv "${EXTRACTED_DIR}/syncthing" /usr/bin
|
|
||||||
|
|
||||||
# Move .desktop files
|
|
||||||
mv "${EXTRACTED_DIR}/etc/linux-desktop/"*.desktop /usr/share/applications/
|
|
||||||
|
|
||||||
# Move the systemd service file
|
|
||||||
cp "${EXTRACTED_DIR}/etc/linux-systemd/user/syncthing.service" /etc/systemd/system/
|
|
||||||
|
|
||||||
# Enable the systemd service
|
|
||||||
systemctl enable syncthing
|
|
||||||
|
|
||||||
# Verify the installation
|
|
||||||
if command -v syncthing &> /dev/null
|
|
||||||
then
|
|
||||||
echo "Syncthing command is found in PATH."
|
|
||||||
else
|
|
||||||
echo "Syncthing command not found in PATH."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Verify that syncthing --version works
|
|
||||||
if syncthing --version &> /dev/null
|
|
||||||
then
|
|
||||||
echo "Syncthing --version executes successfully."
|
|
||||||
else
|
|
||||||
echo "Syncthing --version did not execute successfully."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
rm -rf "${EXTRACTED_DIR}"
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -oue pipefail
|
|
||||||
|
|
||||||
cat <<EOF | tee /etc/yum.repos.d/kubernetes.repo
|
|
||||||
[kubernetes]
|
|
||||||
name=Kubernetes
|
|
||||||
baseurl=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/
|
|
||||||
enabled=1
|
|
||||||
gpgcheck=1
|
|
||||||
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/repodata/repomd.xml.key
|
|
||||||
EOF
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# https://docs.gitlab.com/runner/install/docker.html#selinux
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
git clone https://github.com/dpw/selinux-dockersock.git /tmp/selinux-dockersock
|
|
||||||
|
|
||||||
pushd /tmp/selinux-dockersock
|
|
||||||
|
|
||||||
make dockersock.pp
|
|
||||||
|
|
||||||
semodule -i dockersock.pp
|
|
||||||
|
|
||||||
popd
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -oue pipefail
|
|
||||||
|
|
||||||
rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
|
||||||
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
|
||||||
modules:
|
modules:
|
||||||
- from-file: common/docker-engine.yml
|
- from-file: common/docker-engine.yml
|
||||||
- type: rpm-ostree
|
- type: rpm-ostree
|
||||||
@@ -34,5 +36,3 @@ modules:
|
|||||||
scripts:
|
scripts:
|
||||||
- install-mkcert.sh
|
- install-mkcert.sh
|
||||||
- install-codelldb.sh
|
- install-codelldb.sh
|
||||||
# snippets:
|
|
||||||
# - curl -fsSL https://ollama.com/install.sh | sed 's|/usr/local/bin||' | sh
|
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
|
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
|
||||||
modules:
|
modules:
|
||||||
- type: script
|
- type: script
|
||||||
scripts:
|
|
||||||
- install-syncthing.sh
|
|
||||||
snippets:
|
snippets:
|
||||||
- rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
- rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||||
- type: rpm-ostree
|
- type: rpm-ostree
|
||||||
@@ -25,4 +23,9 @@ modules:
|
|||||||
- xclip
|
- xclip
|
||||||
- bat
|
- bat
|
||||||
- brave-browser
|
- brave-browser
|
||||||
|
- syncthing
|
||||||
|
- type: systemd
|
||||||
|
user:
|
||||||
|
enabled:
|
||||||
|
- syncthing
|
||||||
- from-file: common/ms-fonts.yml
|
- from-file: common/ms-fonts.yml
|
||||||
|
|||||||
@@ -8,9 +8,16 @@ stages:
|
|||||||
- from-file: common/helix.yml
|
- from-file: common/helix.yml
|
||||||
modules:
|
modules:
|
||||||
- from-file: common/updates.yml
|
- from-file: common/updates.yml
|
||||||
- type: script
|
# - type: script
|
||||||
scripts:
|
# scripts:
|
||||||
- install-syncthing.sh
|
# - install-syncthing.sh
|
||||||
|
- type: rpm-ostree
|
||||||
|
install:
|
||||||
|
- syncthing
|
||||||
|
- type: systemd
|
||||||
|
user:
|
||||||
|
enabled:
|
||||||
|
- syncthing
|
||||||
- type: fonts
|
- type: fonts
|
||||||
fonts:
|
fonts:
|
||||||
nerd-fonts:
|
nerd-fonts:
|
||||||
|
|||||||
Reference in New Issue
Block a user