Skip to content

Commit

Permalink
Add mkdir .narou to make narou.rb rocognize current directory is root…
Browse files Browse the repository at this point in the history
… directory for narou.
  • Loading branch information
jam7 committed May 6, 2017
1 parent 0eb9b26 commit 35c1fef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/sh

if [ ! -d "/opt/narou/.narou" ]; then
mkdir /opt/narou/.narousetting
unzip /opt/AozoraEpub3.zip -d /opt/narou/AozoraEpub3
unzip -q /opt/AozoraEpub3.zip -d /opt/narou/AozoraEpub3
ln -s /opt/kindlegen/kindlegen /opt/AozoraEpub3
narou init -p /opt/narou/AozoraEpub3
narou setting device=kindle
# Do not make .narousetting nor .narou directory at the beginning
# since narou changes it's behavior of existance of them.
# However, we need global setting directory under /opt/narou,
# so moving it here.
mv $HOME/.narousetting /opt/narou/
echo -e "---\nalready-server-boot: true" > /opt/narou/.narousetting/server_setting.yaml
fi

Expand Down

0 comments on commit 35c1fef

Please sign in to comment.