2021-08-13 18:53:18 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
addGroup meteor ""
|
2022-02-17 06:50:58 +08:00
|
|
|
addUser meteor "" meteor /usr/share/meteor "meteor user-daemon" "/usr/sbin/nologin"
|
2021-08-13 18:53:18 +08:00
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
install|upgrade|1|2)
|
|
|
|
|
|
|
|
if [ -f /usr/share/meteor/bundle/programs/server/node_modules ]; then
|
|
|
|
rm -r /usr/share/meteor/bundle/programs/server/node_modules
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|