le-dosvox: Chages all 'USER_TO_INSTALL' to '1' in configuredosvox function

Because the way the parameter will be acessed in the function

Signed-off-by: Dalmon Ian Martins de Oliveira <dimo13.c3sl.ufpr.br>
parent d10e6be9
......@@ -29,16 +29,16 @@ function configureDosvox () {
DESKTOP="Área de Trabalho"
sed -e "s/${VAR1}/${VAR2}/" -e "s/${VAR3}/${VAR3}12/" \
-e "s/${VAR4}/${VAR4}29/" \
-i /home/$USER_TO_INSTALL/.wine/drive_c/winvox/dosvox.ini
cp "/home/$USER_TO_INSTALL/$DESKTOP/Dosvox.desktop" /home/$1
mv "/home/$USER_TO_INSTALL/$DESKTOP/Dosvox.lnk" "/home/$1/$DESKTOP/.Dosvox.lnk" &&
-i /home/$1/.wine/drive_c/winvox/dosvox.ini
cp "/home/$1/$DESKTOP/Dosvox.desktop" /home/$1
mv "/home/$1/$DESKTOP/Dosvox.lnk" "/home/$1/$DESKTOP/.Dosvox.lnk" &&
sed -i "s\/${1}/\/dosvox_user/\ " /home/$USER_TO_INSTALL/Dosvox.desktop
cp /home/$USER_TO_INSTALL/.wine/drive_c/winvox/dosvox.ini \
/home/$USER_TO_INSTALL/.wine/drive_c/windows/dosvox.ini
cp /home/$1/.wine/drive_c/winvox/dosvox.ini \
/home/$1/.wine/drive_c/windows/dosvox.ini
mkdir $VAR5/Área\ de\ Trabalho
cp /home/$USER_TO_INSTALL/Dosvox.desktop "$VAR5/$DESKTOP"
cp -R /home/$USER_TO_INSTALL/.wine $VAR5
cp/home/$USER_TO_INSTALL/.local/share/icons/hicolor/32x32/apps/150E_dosvox.0.png \
cp /home/$1/Dosvox.desktop "$VAR5/$DESKTOP"
cp -R /home/$1/.wine $VAR5
cp/home/$1/.local/share/icons/hicolor/32x32/apps/150E_dosvox.0.png \
$VAR5/.local/share/icons/hicolor/32x32/apps
chown -Rf dosvox_user:dosvox_user $VAR5/.wine
chown dosvox_user:dosvox_user "$VAR5/$DESKTOP/Dosvox.desktop"
......@@ -49,7 +49,7 @@ function configureDosvox () {
USER_TO_INSTALL=$1
# Verifies if $USER_TO_INSTALL holds something
if [[ "$USER_TO_INSTALL" = "" || "$(grep $1 /etc/passwd)" = "" ]]; then
if [[ "$USER_TO_INSTALL" = "" || "$(grep $USER_TO_INSTALL /etc/passwd)" = "" ]]; then
zenity --error --title="Erro ao instalar" \
--text="O usuário não pode ser indentificado"
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment