Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins symlink does not work as plugins folder already exists #4

Open
PAFsec opened this issue Jan 28, 2017 · 1 comment
Open

plugins symlink does not work as plugins folder already exists #4

PAFsec opened this issue Jan 28, 2017 · 1 comment

Comments

@PAFsec
Copy link

PAFsec commented Jan 28, 2017

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.

@tsgoff
Copy link
Owner

tsgoff commented Jan 28, 2017

Hi PAFsec, thank you for your feedback. I see the Problem. That should do the trick:
222 /bin/mv $YOURLS_PATH/plugins /data
223 ln -s /data/plugins/ $YOURLS_PATH/
I will test it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants