First strike
This commit is contained in:
commit
6d93f94cb8
18 changed files with 109 additions and 0 deletions
38
instalee
Executable file
38
instalee
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
home="${XDG_CONFIG_HOME:-$HOME/.config}/instalee"
|
||||
|
||||
underline() { echo "[4m$1[0m"; }
|
||||
|
||||
get() {
|
||||
result=$(cat "$home/sources" | while read source
|
||||
do find "$home/packages/$1" -name "$source*" 2>/dev/null
|
||||
done)
|
||||
test "$result" || (echo "No source for package '$1'" >>/dev/stderr && exit 1)
|
||||
echo "$result"
|
||||
}
|
||||
|
||||
getcontent() {
|
||||
case "$(file "$1")" in
|
||||
*executable*) $1;;
|
||||
*) cat "$1";;
|
||||
esac
|
||||
}
|
||||
|
||||
case $1 in
|
||||
-a)
|
||||
dir="$home/packages/$2"
|
||||
mkdir -p "$dir"
|
||||
echo "$4">"$dir/$3"
|
||||
*)
|
||||
get "$1" | while read pkg; do
|
||||
underline "$pkg"
|
||||
name="$(basename $pkg)"
|
||||
base="${name%_*}"
|
||||
ext="${name##$base}"
|
||||
mgr="$home/managers/$base"
|
||||
args="$(getcontent "$pkg")"
|
||||
(test "$base" = "manual" && echo "$args") || (install="$(find "$mgr" -name "install$ext" | head -1)" && echo $install $args && $install $args)
|
||||
done
|
||||
esac
|
||||
|
30
instalee.1
Normal file
30
instalee.1
Normal file
|
@ -0,0 +1,30 @@
|
|||
.\" Manpage for instalee.
|
||||
.\" Contact xerusx@pm.me to correct errors or typos.
|
||||
|
||||
.TH man 1 "06 May 2020" "0.1" "nuseradd man page"
|
||||
|
||||
.SH NAME
|
||||
|
||||
nuseradd \- create a new LDAP user
|
||||
|
||||
.SH SYNOPSIS
|
||||
|
||||
nuseradd [USERNAME]
|
||||
|
||||
.SH DESCRIPTION
|
||||
|
||||
nuseradd is high level shell program for adding users to LDAP server. On Debian, administrators should usually use nuseradd.debian(8) instead.
|
||||
|
||||
.SH OPTIONS
|
||||
|
||||
The nuseradd does not take any options. However, you can supply username.
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
.SH BUGS
|
||||
|
||||
Completely WIP!
|
||||
|
||||
.SH AUTHOR
|
||||
|
||||
Xerus (xerusx@pm.me)
|
2
managers/apt/install
Executable file
2
managers/apt/install
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
sudo apt install "$@"
|
9
managers/apt/install_deb
Normal file
9
managers/apt/install_deb
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
loc="/tmp/install.deb"
|
||||
case $1 in
|
||||
(http*) sudo wget -O "$loc" $1 ;;
|
||||
(*) loc="$1" ;;
|
||||
esac
|
||||
sudo dpkg -i "$loc"
|
||||
sudo apt -f install
|
||||
sudo rm -f "$loc"
|
2
managers/apt/ppa
Normal file
2
managers/apt/ppa
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
add-apt-repository "$@"
|
2
managers/pac/install
Executable file
2
managers/pac/install
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
pac -S "$@"
|
5
managers/script/install
Executable file
5
managers/script/install
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
location="/usr/local/bin/$(basename $1)"
|
||||
curl "$1" | sudo tee "$location" > /dev/null
|
||||
sudo chmod +x "$location"
|
||||
echo "Installed to $location"
|
2
managers/snap/install
Normal file
2
managers/snap/install
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
snap install "$@"
|
0
packages/git/apt
Normal file
0
packages/git/apt
Normal file
2
packages/nvim/apt
Normal file
2
packages/nvim/apt
Normal file
|
@ -0,0 +1,2 @@
|
|||
apt install neovim
|
||||
sudo update-alternatives --install $(which editor) editor /usr/bin/nvim 50
|
2
packages/passff/manual
Executable file
2
packages/passff/manual
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
curl -sSL github.com/passff/passff-host/releases/latest/download/install_host_app.sh | bash -s -- firefox
|
1
packages/pfetch/script
Normal file
1
packages/pfetch/script
Normal file
|
@ -0,0 +1 @@
|
|||
https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch
|
5
packages/sterred/manual
Normal file
5
packages/sterred/manual
Normal file
|
@ -0,0 +1,5 @@
|
|||
cd /opt
|
||||
git clone git://github.com/sickill/stderred.git
|
||||
cd sterred
|
||||
make
|
||||
case "$LD_PRELOAD" in *libstderred.so*) ;; *) echo 'export LD_PRELOAD="/absolute/path/to/stderred/build/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"'>>$HOME/.zprofile;; esac
|
1
packages/telegram/apt_ppa
Normal file
1
packages/telegram/apt_ppa
Normal file
|
@ -0,0 +1 @@
|
|||
ppa:atareao/telegram
|
1
packages/telegram/snap
Normal file
1
packages/telegram/snap
Normal file
|
@ -0,0 +1 @@
|
|||
telegram-desktop
|
1
packages/tracefile/script
Normal file
1
packages/tracefile/script
Normal file
|
@ -0,0 +1 @@
|
|||
https://gitlab.com/ole.tange/tangetools/raw/master/tracefile/tracefile
|
1
packages/zoom/apt_deb
Normal file
1
packages/zoom/apt_deb
Normal file
|
@ -0,0 +1 @@
|
|||
https://zoom.us/client/latest/zoom_amd64.deb
|
5
sources
Normal file
5
sources
Normal file
|
@ -0,0 +1,5 @@
|
|||
apt
|
||||
snap
|
||||
flatpak
|
||||
script
|
||||
manual
|
Loading…
Add table
Reference in a new issue