-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·57 lines (49 loc) · 1.47 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
#autor: fitorec <chanerec@gmail.com>
#descripcion: Este script instala el programa dia-gnome y ferret 2 herramientas para el modelado de BD
# . --- .
# / \
# | O _ O |
# | ./ \. |
# / `-._.-' \
# .' / \ `.
# .-~.-~/ \~-.~-.
#.-~ ~ | | ~ ~-.
#`- . | | . -'
# ~ - | | - ~
# \ /
# ___\ /___
# ~;_ >- . . -< _i~
# `' `'
# if [ `id -g` -ne 0 ]
# then
# echo "Usage: ./$0 root group"
# exit $E_BADARGS
# fi
#Instalando Dia y los paquetes necesarios para trabajar en SICA
#apt-get update -y
#packages=(dia-gnome mysql mysqldump)
#for package in ${packages[@]}
#do
# apt-get --force-yes -y build-dep $package
# apt-get --force-yes -y install $package
#done;
#dia Splash
echo "Cambiando Splash (este se ve mas bonito :¬D)"
cp dia-splash.png /usr/share/dia/dia-splash.png
#dia plugins
plugins=(diasql diapo diacalc diajson)
for plugin in ${plugins[@]}
do
echo "Compilando & copiando plugin " $plugin
#chmod 644 $plugin.py
chmod 644 ./src/plugins/$plugin.py
#gene new
mkdir -p ~/.dia/python/
rm -f ~/.dia/python/$plugin.py ~/.dia/python/$plugin.py
cp ./src/plugins/$plugin.py ~/.dia/python/$plugin.py
python3 -m compileall ~/.dia/python/$plugin.py
#permisos adecuados
chmod 644 ~/.dia/python/$plugin.py*
done;
zenity --info --text="La instalacion ha concluido de forma exitosa"