diff options
author | s7hoang | 2022-01-19 22:52:29 -0500 |
---|---|---|
committer | s7hoang | 2022-01-20 02:14:49 -0500 |
commit | c507789bb1c4c0374fde187cba4a2da18117dc7e (patch) | |
tree | a21e10bbabab37111ee198911e344ff180e3aaa5 | |
parent | 5d274d881c2ebcddd8b1ef77a660fa1eb0c8d036 (diff) | |
download | aur-c507789bb1c4c0374fde187cba4a2da18117dc7e.tar.gz |
Remove Post-Install Instruction Spew
Moved to manpage
-rw-r--r-- | anki-sync-server.install | 72 |
1 files changed, 3 insertions, 69 deletions
diff --git a/anki-sync-server.install b/anki-sync-server.install index 2446fd8c4399..e22e8318491d 100644 --- a/anki-sync-server.install +++ b/anki-sync-server.install @@ -20,75 +20,9 @@ post_install() { systemctl start anki-sync-server # post installation instructions - cat << EOF -======================================================================= ------------------- -Post Installation: ------------------- -You'll need to go to: - - /opt/anki-sync-server - -and run: - - sudo -u anki-sync-server ./ankisyncctl.py adduser <username> - -to add a new user to the anki database. - --------------------- -Plugin Installation: --------------------- -To have anki interface with the server, you'll need to copy the plugin -from /opt/anki-sync-server/plugins to the relevant directory. - -Anki 2.1.28 (and up): ~/.local/share/Anki/addons21 - ln -s /opt/anki-sync-server/plugins/anki2.1.28/anki-sync-server \\ - ~/.local/share/Anki2/addons21/ - -Anki 2.1: ~/.local/share/Anki2/addons21/ - ln -s /opt/anki-sync-server/plugins/anki2.1/anki-sync-server \\ - ~/.local/share/Anki2/addons21/ - -Anki 2.0: ~/Anki/addons - ln -s /opt/anki-sync-server/plugins/anki2.0/anki-sync-server.py \\ - ~/Anki/addons - -or your OS equivalent. - ---------------- -Run The Server: ---------------- -The server should be set to auto start via systemctl and should be already running. -See: - - systemctl status anki-sync-server - systemctl status nginx - -for details. - -Otherwise, to run the server go to: - - /opt/anki-sync-server/ - -then run: - - sudo -u anki-sync-server python -m ankisyncd - -if you run it as another user you may have to install the dependencies again: - - pip install -r /opt/anki-sync-server/requirements.txt [--user] - -=== (be aware you may have trouble with permissions on your auth.db if you run as different users!) === - ------ -NGINX ------ -/etc/nginx/nginx.conf has been modified and a backup has been saved to /etc/nginx/nginx.conf.pacsave. It would be a good idea to diff to see if anything has gone awry. - -nginx.service is set to autostart. - -======================================================================= -EOF + echo "===============================================" + echo "Check the manpage for post-install instructions" + echo "===============================================" } post_remove(){ |