scripts
This commit is contained in:
parent
d91d24f1aa
commit
77d0b75af9
@ -1,5 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /usr/bin/apt ] ; then
|
||||||
|
echo "This script is only for Debian-based systems"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking electronmail version"
|
echo "Checking electronmail version"
|
||||||
touch /etc/electronmail_version.conf
|
touch /etc/electronmail_version.conf
|
||||||
version_electronmail=$(curl "https://github.com/vladimiry/ElectronMail/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
version_electronmail=$(curl "https://github.com/vladimiry/ElectronMail/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
install_ffmpeg_gen(){
|
install_ffmpeg_gen(){
|
||||||
echo "Downloading ffmpeg"
|
echo "Downloading ffmpeg"
|
||||||
rm -rf /tmp/ffmpeg.tar.xz
|
rm -rf /tmp/ffmpeg.tar.xz
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
install_firefox_gen() {
|
install_firefox_gen() {
|
||||||
download_url_firefox="${1}"
|
download_url_firefox="${1}"
|
||||||
echo "Downloading firefox"
|
echo "Downloading firefox"
|
||||||
|
@ -1,5 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /usr/bin/apt ] ; then
|
||||||
|
echo "This script is only for Debian-based systems"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking open-tv version"
|
echo "Checking open-tv version"
|
||||||
touch /etc/opentv_version.conf
|
touch /etc/opentv_version.conf
|
||||||
version_opentv=$(curl "https://github.com/Fredolx/open-tv/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
version_opentv=$(curl "https://github.com/Fredolx/open-tv/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
||||||
|
@ -1,5 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /usr/bin/apt ] ; then
|
||||||
|
echo "This script is only for Debian-based systems"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking rclone version"
|
echo "Checking rclone version"
|
||||||
touch /etc/rclone_version.conf
|
touch /etc/rclone_version.conf
|
||||||
version_rclone=$(curl "https://rclone.org/downloads/" 2> /dev/null | grep "\"release\"" | cut -d ">" -f 2 | cut -d "<" -f 1)
|
version_rclone=$(curl "https://rclone.org/downloads/" 2> /dev/null | grep "\"release\"" | cut -d ">" -f 2 | cut -d "<" -f 1)
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
install_telegram_gen() {
|
install_telegram_gen() {
|
||||||
download_url_telegram="${1}"
|
download_url_telegram="${1}"
|
||||||
echo "Downloading telegram"
|
echo "Downloading telegram"
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
install_vim_gen(){
|
install_vim_gen(){
|
||||||
version_download="${1}"
|
version_download="${1}"
|
||||||
echo "Downloading vim"
|
echo "Downloading vim"
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
install_yazi_gen(){
|
install_yazi_gen(){
|
||||||
version_download="${1}"
|
version_download="${1}"
|
||||||
echo "Downloading yazi"
|
echo "Downloading yazi"
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /etc/root 2> /dev/null
|
||||||
|
rootperm=$?
|
||||||
|
if [ $rootperm -eq 0 ] ; then
|
||||||
|
rm -rf /etc/root
|
||||||
|
else
|
||||||
|
echo "Root permission is required to run this script"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking yt-dlp version"
|
echo "Checking yt-dlp version"
|
||||||
touch /etc/ytdlp_version.conf
|
touch /etc/ytdlp_version.conf
|
||||||
version_ytdlp=$(curl "https://github.com/yt-dlp/yt-dlp/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
version_ytdlp=$(curl "https://github.com/yt-dlp/yt-dlp/releases" 2> /dev/null | grep "releases/tag" | head -1 | cut -d "=" -f 4 | cut -d "/" -f 6 | cut -d '"' -f 1 | cut -d "v" -f 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user