2021-05-08 13:27:24 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2021-08-04 20:37:06 +02:00
|
|
|
# Borg zenity install and update
|
2021-08-05 18:23:19 +02:00
|
|
|
which zenity
|
|
|
|
if [ "$?" != "0" ]; then
|
|
|
|
bash testdistro.sh || exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
which borg
|
|
|
|
if [ "$?" != "0" ]; then
|
|
|
|
bash testdistro.sh || exit
|
|
|
|
fi
|
|
|
|
|
2021-05-08 13:27:24 +02:00
|
|
|
|
2021-07-25 16:13:42 +02:00
|
|
|
mkdir -p $HOME/bin/ $HOME/.icons/ $HOME/.local/share/applications/
|
2021-05-08 13:27:24 +02:00
|
|
|
|
2021-08-05 10:12:28 +02:00
|
|
|
# copie des fichiers
|
2021-07-25 16:13:42 +02:00
|
|
|
cp -fv borg-gui.sh $HOME/bin/
|
|
|
|
cp -fv borg.svg $HOME/.icons/
|
2021-08-07 11:44:49 +02:00
|
|
|
cp -fv borgzenity-profils.svg $HOME/.icons/
|
|
|
|
cp -fv borgzenity-sauvegarde.svg $HOME/.icons/
|
2021-07-25 16:13:42 +02:00
|
|
|
cp -fv sauvegarde-borg.desktop $HOME/.local/share/applications/
|
2021-08-05 09:39:45 +02:00
|
|
|
cp -fv gestprofilsborgzenity.desktop $HOME/.local/share/applications/
|
2021-08-05 10:12:28 +02:00
|
|
|
cp -fv profile-manager.sh $HOME/bin/
|
|
|
|
|
|
|
|
# réglages des droits
|
|
|
|
chmod 700 $HOME/bin/borg-gui.sh
|
|
|
|
chmod 700 $HOME/bin/profile-manager.sh
|