Detect package manager

This commit is contained in:
2022-10-20 17:00:10 -05:00
parent 0919ec2fa4
commit 974c006690
3 changed files with 35 additions and 7 deletions

View File

@ -1,11 +1,14 @@
#!/bin/sh
#!/bin/bash
install_package() {
/usr/bin/apt install $*
}
set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Load default shell scripts
. $SCRIPT_DIR/../sh/load.sh
update_default_shell() {
/usr/sbin/usermod -s /usr/bin/zsh $1
/usr/sbin/usermod -sf /usr/bin/zsh $1
}
install_shell_config() {
@ -22,4 +25,7 @@ install_shell_config /home/coby/.zshrc
# Replace old ssh server config
rm /etc/ssh/sshd_config
ln -s /etc/toolkit/sshd/sshd_config /etc/ssh/.
ln -sf /etc/toolkit/sshd/sshd_config /etc/ssh/.
# Pull submodules
. $SCRIPT_DIR/update.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
git reset --hard
git pull