mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
7cde6958f3
After a long discussion, it turned out that CodiMD as community project and HackMD as a company, have fundamental different views on the project governance. Due to this, it came to point where the decision for a fork was made. After the fork and move towards an own organisation, this patch updates all links inside the project to the new repositories. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
47 lines
941 B
Bash
Executable file
47 lines
941 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# run command at repo root
|
|
CURRENT_PATH=$PWD
|
|
if [ -d .git ]; then
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
fi
|
|
|
|
if ! type yarn > /dev/null
|
|
then
|
|
cat << EOF
|
|
yarn is not installed, please install Node.js, npm and yarn.
|
|
Read more on Node.js official website: https://nodejs.org
|
|
And for yarn package manager at: https://yarnpkg.com/en/
|
|
Setup will not be run
|
|
EOF
|
|
exit 0
|
|
fi
|
|
|
|
echo "copy config files"
|
|
if [ ! -f config.json ]; then
|
|
cp config.json.example config.json
|
|
fi
|
|
|
|
if [ ! -f .sequelizerc ]; then
|
|
cp .sequelizerc.example .sequelizerc
|
|
fi
|
|
|
|
echo "install packages"
|
|
yarn install --pure-lockfile
|
|
yarn install --production=false --pure-lockfile
|
|
|
|
cat << EOF
|
|
|
|
|
|
Edit the following config file to setup CodiMD server and client.
|
|
Read more info at https://github.com/codimd/server#configuration-files
|
|
|
|
* config.json -- CodiMD config
|
|
* .sequelizerc -- db config
|
|
|
|
EOF
|
|
|
|
# change directory back
|
|
cd "$CURRENT_PATH"
|