We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6ab17 commit 84d0f32Copy full SHA for 84d0f32
tools/update.sh
@@ -20,13 +20,13 @@ if [[ -d "$INSTALL_DIR" && $(< $INSTALL_DIR/version) == '0.1' ]]; then
20
21
/etc/init.d/lwp stop
22
23
- tmp=$(mktmp)
+ tmp=$(mktemp -d)
24
25
echo 'Backuping database...'
26
[[ -f "$INSTALL_DIR/lwp.db" ]] && cp "$INSTALL_DIR/lwp.db" "$tmp" || echo "Can't backup the database!"
27
28
echo 'Removing old version...'
29
- rm -rf "$INSTALL_DIR/*" "$INSTALL_DIR/.*"
+ rm -rf $INSTALL_DIR/* $INSTALL_DIR/.* &> /dev/null
30
31
echo 'Installing LXC Web Panel v0.2...'
32
git clone https://github.com/lxc-webpanel/LXC-Web-Panel.git "$INSTALL_DIR"
0 commit comments