Hello,
Thank you for your docker.
As describe in the title, the plugins symlink is not created under the user/ folder, as a folder already exists. It is rather created under user/plugins/plugins which makes YOURLS not taking it in account.
I am mounting a volume like so in my docker-compose.yml (in order to restore my previous plugins) :
volumes:
- /my/YOURLS/data:/data
In order to always /bin/mv $YOURLS_PATH/plugins /data you should first check if it exists. If so, /bin/rm -R $YOURLS_PATH/plugins, otherwise /bin/mv $YOURLS_PATH/plugins /data.
This way, you are ensuring the fact that it is never present in the folder before the symbolic link is created.
Thank you in advance.
Hello,
Thank you for your docker.
As describe in the title, the plugins symlink is not created under the user/ folder, as a folder already exists. It is rather created under user/plugins/plugins which makes YOURLS not taking it in account.
I am mounting a volume like so in my docker-compose.yml (in order to restore my previous plugins) :
In order to always
/bin/mv $YOURLS_PATH/plugins /datayou should first check if it exists. If so,/bin/rm -R $YOURLS_PATH/plugins, otherwise/bin/mv $YOURLS_PATH/plugins /data.This way, you are ensuring the fact that it is never present in the folder before the symbolic link is created.
Thank you in advance.