This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BookStack backup & update script | |
# Forked from codemicro: https://gist.github.com/codemicro/f9dc94ecf5831772e1bff92dfba337d0 | |
########### CONFIG ########### | |
# Configure this to be the location where BookStack is installed. | |
# Do not include a trailing slash | |
BOOKSTACK_DIR="/var/www/bookstack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Alter these to your instance, do not share publicly like this. | |
$base_api_url = 'http://bookstack.local/api/'; | |
$token_id='ZNI62nNoghS3GyfzThlZFXqYNtHdHnM6'; | |
$token_secret='zPffPZ1ATQcv4Nz75QYLEbMm6fPzmo7I'; | |
// Id of the shelf we want to add our book to. | |
$shelfId = 12; // $_POST["category"] |