Every time my Asustor NAS restarts, I lose my configuration

Jeandaubi 3 years ago 0

Hi guys, 

I'm an Asustor user, and I'm trying to make the last version of Ubooquity work on my NAS for a few days. I have followed this tutorial. I'm not very good in SSH, and it took me a while to understand. I  finally changed a bit the contents of the tutorial to better match what I was doing.

Here is my start-stop.sh script :


# ums files
UBOOQUITY_PID=$(ps ax | grep java | grep Ubooquity | awk '{ print $1 }')

case $1 in

echo "Starting Ubooquity..."
java -Xmx256m -jar $UBOOQUITY_DIR/Ubooquity.jar -headless -remoteadmin -adminport 8079 1> /dev/null 2> /dev/null/ &

echo "Killing Ubooquity..."

echo "Relaod Ubooquity..."
sleep 3
java -Xmx256m -jar $UBOOQUITY_DIR/Ubooquity.jar -headless -remoteadmin -adminport 8079 1> /dev/null 2> /dev/null/ &
sleep 3

echo "Checking for Ubooquity PID..."

echo "usage: $0 {start|stop|reload|info}"
exit 1

exit 0

As you can see, Ubooquity is now installed in /volume1/home/admin/Ubooquity. I changed the command line because Ubooquity doesn't seem to launch with the command given in the tutorial, and the access rights by using chmod. I also made the links with the /usr/local/etc/init.d folder

Ubooquity works, but I lose my configuration (users, shared folders etc...) every time my NAS restarts. It's as if I were starting from scratch. I have the feeling that each restart erases my configuration. However the file preferences.json is there.

Can you please help me with this ? I don't understand why Ubooquity behaves like this and it's driving me crazy ;-)