mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-30 01:35:34 +00:00
Keeweb password manager install script
This commit is contained in:
parent
8ab9980bbf
commit
f0d5f70ea5
25
scripts/installers/keeweb-install.sh
Normal file
25
scripts/installers/keeweb-install.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
# Automatic install script for KeeWeb password manager
|
||||||
|
|
||||||
|
# Import library
|
||||||
|
source $(dirname ${BASH_SOURCE[0]})/install-lib.sh
|
||||||
|
|
||||||
|
keeweb=$(sudo dnf list | grep KeeWeb)
|
||||||
|
keewebVersion=$(echo $keeweb | awk '{print $2;}' | filterVersion)
|
||||||
|
url=$(curl -s https://github.com/keeweb/keeweb/releases | grep .rpm | grep -Po '(?<=href=")[^"]*.rpm'| head -n 1)
|
||||||
|
url='https://github.com'$url
|
||||||
|
urlVersion=$(echo $url | filterVersion | head -n 1)
|
||||||
|
|
||||||
|
# Check if installed to the most recent version
|
||||||
|
checkUptoDate keeweb $keewebVersion $urlVersion
|
||||||
|
echo Installing KeeWeb $urlVersion
|
||||||
|
|
||||||
|
# Setting up and downloading package
|
||||||
|
mkdir -p ~/Downloads/installers
|
||||||
|
cd ~/Downloads/installers
|
||||||
|
wget $url
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
sudo dnf install $(basename $url) -y
|
||||||
|
|
@ -42,6 +42,7 @@ function manualUpdate {
|
|||||||
updateProgram dragonframe ~/.config/scripts/installers/dragonframe-install.sh
|
updateProgram dragonframe ~/.config/scripts/installers/dragonframe-install.sh
|
||||||
updateProgram reaper ~/.config/scripts/installers/reaper-install.sh
|
updateProgram reaper ~/.config/scripts/installers/reaper-install.sh
|
||||||
updateProgram /opt/resolve/bin/resolve ~/.config/scripts/installers/resolve-install.sh
|
updateProgram /opt/resolve/bin/resolve ~/.config/scripts/installers/resolve-install.sh
|
||||||
|
updateProgram keeweb ~/dotfiles/scripts/installers/keeweb-install.sh
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user