borg-zenity/install.sh

28 lines
697 B
Bash
Raw Normal View History

2021-05-08 13:27:24 +02:00
#! /bin/bash
# Borg zenity install and update
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
mkdir -p $HOME/bin/ $HOME/.icons/ $HOME/.local/share/applications/
2021-05-08 13:27:24 +02:00
# copie des fichiers
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/
cp -fv sauvegarde-borg.desktop $HOME/.local/share/applications/
cp -fv gestprofilsborgzenity.desktop $HOME/.local/share/applications/
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