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