addPPA check if PPA exist before add it
This commit is contained in:
parent
7ceb1bbfc1
commit
c92d31d7f7
3 changed files with 74 additions and 66 deletions
|
@ -111,7 +111,7 @@ function yggInit () {
|
||||||
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q ubuntu-make; then
|
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q ubuntu-make; then
|
||||||
printf "[INIT][UMAKE] PPA not found, adding PPA...\n"
|
printf "[INIT][UMAKE] PPA not found, adding PPA...\n"
|
||||||
printf "[INIT][UMAKE] PPA not found, adding PPA...\n" &>> $logFile
|
printf "[INIT][UMAKE] PPA not found, adding PPA...\n" &>> $logFile
|
||||||
addPPA "ppa:ubuntu-desktop/ubuntu-make"
|
addPPA "ubuntu-desktop/ubuntu-make"
|
||||||
else
|
else
|
||||||
printf "[INIT][UMAKE] PPA found [ ""$BOLDVERT""OK"$NORMAL" ] \n"
|
printf "[INIT][UMAKE] PPA found [ ""$BOLDVERT""OK"$NORMAL" ] \n"
|
||||||
fi
|
fi
|
||||||
|
@ -218,11 +218,18 @@ function updateSystem () {
|
||||||
#
|
#
|
||||||
function addPPA () {
|
function addPPA () {
|
||||||
typeset ret_code
|
typeset ret_code
|
||||||
|
|
||||||
|
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q $*; then
|
||||||
printf "[PPA] adding : $* "
|
printf "[PPA] adding : $* "
|
||||||
printf "\n[PPA] adding $*\n" &>> $logFile
|
printf "\n[PPA] adding $*\n" &>> $logFile
|
||||||
sudo add-apt-repository -y $* &>> $logFile
|
sudo add-apt-repository -y "ppa:"$* &>> $logFile
|
||||||
ret_code=$?
|
ret_code=$?
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
|
else
|
||||||
|
printf "[PPA] PPA already added [ ""$BOLDVERT""OK"$NORMAL" ] \n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -455,14 +455,14 @@ shotwell;addRepo_Shotwell"
|
||||||
# Shotwell
|
# Shotwell
|
||||||
#
|
#
|
||||||
function addRepo_Shotwell () {
|
function addRepo_Shotwell () {
|
||||||
addPPA "ppa:yg-jensge/shotwell"
|
addPPA "yg-jensge/shotwell"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Telegram
|
# Telegram
|
||||||
#
|
#
|
||||||
function addRepo_Telegram () {
|
function addRepo_Telegram () {
|
||||||
addPPA "ppa:atareao/telegram"
|
addPPA "atareao/telegram"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -488,42 +488,42 @@ function addRepo_NodeLts8 () {
|
||||||
# Kicad 4
|
# Kicad 4
|
||||||
#
|
#
|
||||||
function addRepo_Kicad () {
|
function addRepo_Kicad () {
|
||||||
addPPA "ppa:js-reynaud/kicad-4"
|
addPPA "js-reynaud/kicad-4"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Brackets IDE
|
# Brackets IDE
|
||||||
#
|
#
|
||||||
function addRepo_Brackets () {
|
function addRepo_Brackets () {
|
||||||
addPPA "ppa:webupd8team/brackets"
|
addPPA "webupd8team/brackets"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Darktable RAW Editor
|
# Darktable RAW Editor
|
||||||
#
|
#
|
||||||
function addRepo_DarkTable () {
|
function addRepo_DarkTable () {
|
||||||
addPPA "ppa:pmjdebruijn/darktable-release"
|
addPPA "pmjdebruijn/darktable-release"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# WireShark
|
# WireShark
|
||||||
#
|
#
|
||||||
function addRepo_WireShark () {
|
function addRepo_WireShark () {
|
||||||
addPPA "ppa:wireshark-dev/stable"
|
addPPA "wireshark-dev/stable"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# NextCloud
|
# NextCloud
|
||||||
#
|
#
|
||||||
function addRepo_NextCloud () {
|
function addRepo_NextCloud () {
|
||||||
addPPA "ppa:nextcloud-devs/client"
|
addPPA "nextcloud-devs/client"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Atom IDE
|
# Atom IDE
|
||||||
#
|
#
|
||||||
function addRepo_Atom () {
|
function addRepo_Atom () {
|
||||||
addPPA "ppa:webupd8team/atom"
|
addPPA "webupd8team/atom"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -613,7 +613,7 @@ function addRepo_Etcher () {
|
||||||
# Ansible
|
# Ansible
|
||||||
#
|
#
|
||||||
function addRepo_Ansible () {
|
function addRepo_Ansible () {
|
||||||
addPPA "ppa:ansible/ansible"
|
addPPA "ansible/ansible"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -656,21 +656,21 @@ function addRepo_Wine () {
|
||||||
# LibreOffice 6
|
# LibreOffice 6
|
||||||
#
|
#
|
||||||
function addRepo_Libreoffice6 () {
|
function addRepo_Libreoffice6 () {
|
||||||
addPPA "ppa:libreoffice/ppa"
|
addPPA "libreoffice/ppa"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kodi (Beta)
|
# Kodi (Beta)
|
||||||
#
|
#
|
||||||
function addRepo_KodiBeta () {
|
function addRepo_KodiBeta () {
|
||||||
addPPA "ppa:team-xbmc/unstable"
|
addPPA "team-xbmc/unstable"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kodi (Nightly)
|
# Kodi (Nightly)
|
||||||
#
|
#
|
||||||
function addRepo_KodiNightly () {
|
function addRepo_KodiNightly () {
|
||||||
addPPA "ppa:team-xbmc/xbmc-nightly"
|
addPPA "team-xbmc/xbmc-nightly"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -686,7 +686,7 @@ function addRepo_VSCode () {
|
||||||
# Android-Studio
|
# Android-Studio
|
||||||
#
|
#
|
||||||
function addRepo_AndroidStudio () {
|
function addRepo_AndroidStudio () {
|
||||||
addPPA "ppa:maarten-fonville/android-studio"
|
addPPA "maarten-fonville/android-studio"
|
||||||
}
|
}
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
|
@ -795,50 +795,50 @@ function addRequiredPPA () {
|
||||||
runCmd "echo sience-config science-config/group select '$myHomedir ($myHomedir)' | sudo debconf-set-selections" \
|
runCmd "echo sience-config science-config/group select '$myHomedir ($myHomedir)' | sudo debconf-set-selections" \
|
||||||
"apply settings for science-config pkg"
|
"apply settings for science-config pkg"
|
||||||
|
|
||||||
addPPA "ppa:noobslab/themes" # themes from noobslab
|
addPPA "noobslab/themes" # themes from noobslab
|
||||||
addPPA "ppa:noobslab/icons" # icons from noobslab
|
addPPA "noobslab/icons" # icons from noobslab
|
||||||
addPPA "ppa:numix/ppa" # theme Numix
|
addPPA "numix/ppa" # theme Numix
|
||||||
addPPA "ppa:ravefinity-project/ppa" # Themes
|
addPPA "ravefinity-project/ppa" # Themes
|
||||||
addPPA "ppa:teejee2008/ppa" # Aptik - Conky-Manage
|
addPPA "teejee2008/ppa" # Aptik - Conky-Manage
|
||||||
addPPA "ppa:yktooo/ppa" # indicator-sound-switcher
|
addPPA "yktooo/ppa" # indicator-sound-switcher
|
||||||
addPPA "ppa:webupd8team/y-ppa-manager" # y-ppa-manager
|
addPPA "webupd8team/y-ppa-manager" # y-ppa-manager
|
||||||
addPPA "ppa:videolan/stable-daily" # video player
|
addPPA "videolan/stable-daily" # video player
|
||||||
addPPA "ppa:nowrep/qupzilla" # web browser
|
addPPA "nowrep/qupzilla" # web browser
|
||||||
addPPA "ppa:atareao/atareao" # pushbullet-indicator, imagedownloader, gqrcode, cpu-g
|
addPPA "atareao/atareao" # pushbullet-indicator, imagedownloader, gqrcode, cpu-g
|
||||||
addPPA "ppa:fossfreedom/rhythmbox-plugins"; # Rhythmbox plugins
|
addPPA "fossfreedom/rhythmbox-plugins"; # Rhythmbox plugins
|
||||||
addPPA "ppa:fossfreedom/rhythmbox" # Rhythmbox
|
addPPA "fossfreedom/rhythmbox" # Rhythmbox
|
||||||
addPPA "ppa:nilarimogard/webupd8" # Audacious, Grive2, Pidgin-indicator
|
addPPA "nilarimogard/webupd8" # Audacious, Grive2, Pidgin-indicator
|
||||||
addPPA "ppa:oibaf/graphics-drivers" # free graphics-drivers + mesa
|
addPPA "oibaf/graphics-drivers" # free graphics-drivers + mesa
|
||||||
addPPA "ppa:team-xbmc/ppa" # Kodi
|
addPPA "team-xbmc/ppa" # Kodi
|
||||||
addPPA "ppa:webupd8team/java" # Oracle Java SE 7/8
|
addPPA "webupd8team/java" # Oracle Java SE 7/8
|
||||||
addPPA "ppa:hugin/hugin-builds" # image editor
|
addPPA "hugin/hugin-builds" # image editor
|
||||||
addPPA "ppa:mumble/release" # Mumble
|
addPPA "mumble/release" # Mumble
|
||||||
addPPA "ppa:atareao/utext" # Markdown editor
|
addPPA "atareao/utext" # Markdown editor
|
||||||
addPPA "ppa:danielrichter2007/grub-customizer" # grub-customizer
|
addPPA "danielrichter2007/grub-customizer" # grub-customizer
|
||||||
addPPA "ppa:lucioc/sayonara" # audio player
|
addPPA "lucioc/sayonara" # audio player
|
||||||
addPPA "ppa:haraldhv/shotcut" # video editor
|
addPPA "haraldhv/shotcut" # video editor
|
||||||
addPPA "ppa:flacon/ppa" # audio extraction
|
addPPA "flacon/ppa" # audio extraction
|
||||||
addPPA "ppa:jaap.karssenberg/zim" # local wiki
|
addPPA "jaap.karssenberg/zim" # local wiki
|
||||||
addPPA "ppa:stebbins/handbrake-releases" # video transcoder
|
addPPA "stebbins/handbrake-releases" # video transcoder
|
||||||
addPPA "ppa:graphics-drivers/ppa" # non-free nvidia drivers
|
addPPA "graphics-drivers/ppa" # non-free nvidia drivers
|
||||||
addPPA "ppa:diodon-team/stable" # clipboard manager
|
addPPA "diodon-team/stable" # clipboard manager
|
||||||
addPPA "ppa:notepadqq-team/notepadqq" # notepad++ clone
|
addPPA "notepadqq-team/notepadqq" # notepad++ clone
|
||||||
addPPA "ppa:mariospr/frogr" # flickr manager
|
addPPA "mariospr/frogr" # flickr manager
|
||||||
addPPA "ppa:ubuntuhandbook1/slowmovideo" # slow motion video editor
|
addPPA "ubuntuhandbook1/slowmovideo" # slow motion video editor
|
||||||
addPPA "ppa:transmissionbt/ppa" # bittorrent client
|
addPPA "transmissionbt/ppa" # bittorrent client
|
||||||
addPPA "ppa:geary-team/releases" # email client
|
addPPA "geary-team/releases" # email client
|
||||||
addPPA "ppa:ubuntuhandbook1/corebird" # corebird
|
addPPA "ubuntuhandbook1/corebird" # corebird
|
||||||
addPPA "ppa:tista/adapta" # adapta gtk theme
|
addPPA "tista/adapta" # adapta gtk theme
|
||||||
addPPA "ppa:maarten-baert/simplescreenrecorder" # simplescreenrecorder
|
addPPA "maarten-baert/simplescreenrecorder" # simplescreenrecorder
|
||||||
addPPA "ppa:dhor/myway" # rawtherapee (newer version)
|
addPPA "dhor/myway" # rawtherapee (newer version)
|
||||||
addPPA "ppa:zeal-developers/ppa" # Zeal (newer version)
|
addPPA "zeal-developers/ppa" # Zeal (newer version)
|
||||||
addPPA "ppa:deluge-team/ppa" # Deluge P2P client
|
addPPA "deluge-team/ppa" # Deluge P2P client
|
||||||
addPPA "ppa:kritalime/ppa" # Krita
|
addPPA "kritalime/ppa" # Krita
|
||||||
addPPA "ppa:otto-kesselgulasch/gimp" # Gmic2
|
addPPA "otto-kesselgulasch/gimp" # Gmic2
|
||||||
addPPA "ppa:ozmartian/apps" # Vidcutter
|
addPPA "ozmartian/apps" # Vidcutter
|
||||||
addPPA "ppa:fossproject/ppa" # green-recorder
|
addPPA "fossproject/ppa" # green-recorder
|
||||||
addPPA "ppa:quiterss/quiterss" # quiterss
|
addPPA "quiterss/quiterss" # quiterss
|
||||||
addPPA "ppa:tmsu/ppa" # tmsu
|
addPPA "tmsu/ppa" # tmsu
|
||||||
|
|
||||||
addKey "https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt"
|
addKey "https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt"
|
||||||
addRepo mkv.list \
|
addRepo mkv.list \
|
||||||
|
|
|
@ -43,14 +43,14 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
||||||
while getopts ":h,v,f,c,t,u" option; do
|
while getopts ":h,v,f,c,t,u" option; do
|
||||||
case "$option" in
|
case "$option" in
|
||||||
t) #test purpose only
|
t) #test purpose only
|
||||||
yggInit
|
#yggInit
|
||||||
#installIdea
|
#installIdea
|
||||||
#installNetTools
|
#installNetTools
|
||||||
#installOffice
|
#installOffice
|
||||||
|
#addPPA "tmsu/ppa"
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
f) # install all apps
|
f) # install all apps
|
||||||
#TODO:
|
|
||||||
yggInit
|
yggInit
|
||||||
updateSystem
|
updateSystem
|
||||||
addRequiredPPA
|
addRequiredPPA
|
||||||
|
@ -76,8 +76,9 @@ while getopts ":h,v,f,c,t,u" option; do
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
c) # install themes and icons
|
c) # install themes and icons
|
||||||
#TODO:
|
|
||||||
yggInit
|
yggInit
|
||||||
|
updateSystem
|
||||||
|
addRequiredPPA
|
||||||
installIcons
|
installIcons
|
||||||
installThemes
|
installThemes
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue