Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
slapos.package
Commits
4a80b69b
Commit
4a80b69b
authored
Jan 13, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve tapVPN setup initially to remove with script later.
parent
4bf406b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
templates/debian/prerm
templates/debian/prerm
+5
-0
templates/slapos.spec.in
templates/slapos.spec.in
+5
-0
No files found.
templates/debian/prerm
View file @
4a80b69b
...
...
@@ -13,6 +13,11 @@ case "$1" in
rm
-rf
/opt/slapos/parts
;;
esac
if
[
-f
/etc/openvpn/vifib.conf
]
;
then
cp
-f
/etc/openvpn/vifib.conf /etc/openvpn/vifib.backup.conf
cp
-rf
/etc/openvpn/vifib-keys/ /etc/openvpn/vifib-backup-keys
sed
-i
"s/
\/
etc
\/
openvpn
\/
vifib-keys/
\/
etc
\/
openvpn
\/
vifib-backup-keys/g"
/etc/openvpn/vifib.backup.conf
fi
#DEBHELPER#
...
...
templates/slapos.spec.in
View file @
4a80b69b
...
...
@@ -104,6 +104,11 @@ if [ -f /bin/systemctl ]; then
fi
%preun
if [ -f /etc/openvpn/vifib.conf ]; then
cp -f /etc/openvpn/vifib.conf /etc/openvpn/vifib.backup.conf
cp -rf /etc/openvpn/vifib-keys/ /etc/openvpn/vifib-backup-keys
sed -i "s/\/etc\/openvpn\/vifib-keys/\/etc\/openvpn\/vifib-backup-keys/g" /etc/openvpn/vifib.backup.conf
fi
if [ -f /bin/systemctl ]; then
systemctl stop slapos-node.service
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment