Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
824d9bce
Commit
824d9bce
authored
15 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[#1791] Fix debian installation scripts
parent
574c4eb3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/build-system/distributions/ubuntu/debian-sflphone-common/postinst
+11
-3
11 additions, 3 deletions
...stem/distributions/ubuntu/debian-sflphone-common/postinst
with
11 additions
and
3 deletions
tools/build-system/distributions/ubuntu/debian-sflphone-common/postinst
+
11
−
3
View file @
824d9bce
...
...
@@ -18,14 +18,14 @@ NEW_INST_CACHE=
# Set the XDG CONFIG directory to the default one or to the path set in the environment variable
if
[
-z
$XDG_CONFIG_HOME
]
;
then
NEW_INST_CONFIG
=
$HOME
"/.config/sflphone"
;
# This is the standard path
NEW_INST_CONFIG
=
$HOME
"/.config/sflphone
/
"
;
# This is the standard path
else
NEW_INST_CONFIG
=
$XDG_CONFIG_HOME
;
fi
;
# Set the XDG DATA directory to the default one or to the path set in the environment variable
if
[
-z
$XDG_DATA_HOME
]
;
then
NEW_INST_DATA
=
$HOME
"/.local/share/sflphone"
;
# This is the standard path
NEW_INST_DATA
=
$HOME
"/.local/share/sflphone
/
"
;
# This is the standard path
else
NEW_INST_DATA
=
$XDG_DATA_HOME
;
fi
;
...
...
@@ -33,16 +33,24 @@ fi;
# Move the configuration file
if
[
-f
$INST_CONFIG
]
;
then
echo
"Moving the configuration file into
$NEW_INST_CONFIG
directory"
;
if
[
!
-d
$NEW_INST_CONFIG
]
;
then
mkdir
$NEW_INST_CONFIG
;
fi
mv
$INST_CONFIG
$NEW_INST_CONFIG
;
fi
# Move the history
if
[
-f
$INST_DATA
]
;
then
echo
"Moving the history file into
$NEW_INST_DATA
directory"
;
if
[
!
-d
$NEW_INST_DATA
]
;
then
mkdir
$NEW_INST_DATA
;
fi
mv
$INST_DATA
$NEW_INST_DATA
;
fi
# Remove the directory
rmdir
$HOME
"/.sflphone"
;
# rmdir $HOME"/.sflphone";
echo
"You may remove the
$HOME
/.sflphone, the application won't use it anymore, but the XDG directories instead. Thank you."
;
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment