installation en tant que root
This commit is contained in:
parent
f9e4854919
commit
01d2c197a7
@ -1,6 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=Borg Zenity Profils
|
||||
Exec=bin/profile-manager.sh
|
||||
Exec=/opt/borg-zenity/profile-manager.sh
|
||||
Icon=borgzenity-profils
|
||||
Type=Application
|
||||
Categories=Utility;
|
@ -1,6 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=Borg Zenity Sauvegarde
|
||||
Exec=bin/borg-gui.sh
|
||||
Exec=/opt/borg-zenity/borg-gui.sh
|
||||
Icon=borgzenity-sauvegarde
|
||||
Type=Application
|
||||
Categories=Utility;
|
31
install.sh
31
install.sh
@ -11,24 +11,23 @@ if [ "$?" != "0" ]; then
|
||||
bash testdistro.sh || exit
|
||||
fi
|
||||
|
||||
mkdir -p $HOME/bin/ $HOME/.icons/ $HOME/.local/share/applications/
|
||||
|
||||
# copie des fichiers
|
||||
cp -fv icons/borg.svg $HOME/.icons/
|
||||
cp -fv icons/borgzenity-profils.svg $HOME/.icons/
|
||||
cp -fv icons/borgzenity-sauvegarde.svg $HOME/.icons/
|
||||
|
||||
cp -fv sauvegarde-borg.desktop $HOME/.local/share/applications/
|
||||
cp -fv gestprofilsborgzenity.desktop $HOME/.local/share/applications/
|
||||
|
||||
cp -fv borg-gui.sh $HOME/bin/
|
||||
cp -fv profile-manager.sh $HOME/bin/
|
||||
|
||||
cp -fv borg-zenity.conf $HOME/.config/borg/
|
||||
# Copie des fichiers
|
||||
sudo mkdir -vp /opt/borg-zenity
|
||||
sudo cp -fv icons/borg.svg /usr/share/icons/
|
||||
sudo cp -fv icons/borgzenity-profils.svg /usr/share/icons/
|
||||
sudo cp -fv icons/borgzenity-sauvegarde.svg /usr/share/icons/
|
||||
sudo cp -fv borg-zenity-sauvegarde.desktop /usr/share/applications/
|
||||
sudo cp -fv borg-zenity-gestprofils.desktop /usr/share/applications/
|
||||
sudo cp -fv borg-gui.sh /opt/borg-zenity/
|
||||
sudo cp -fv profile-manager.sh /opt/borg-zenity/
|
||||
|
||||
# réglages des droits
|
||||
chmod 700 $HOME/bin/borg-gui.sh
|
||||
chmod 700 $HOME/bin/profile-manager.sh
|
||||
sudo chmod a+rx /opt/borg-zenity/borg-gui.sh
|
||||
sudo chmod a+rx /opt/borg-zenity/profile-manager.sh
|
||||
|
||||
# Création du fichier de configuration de base
|
||||
mkdir -vp $HOME/.config/borg/
|
||||
cp -fv borg-zenity.conf $HOME/.config/borg/
|
||||
|
||||
echo "--------------------"
|
||||
echo "Installation terminée."
|
||||
|
Loading…
Reference in New Issue
Block a user