Compare commits

..

No commits in common. "89aefee2966caf325ed528920591ce58238e0802" and "c0da209caca1460b1bf4092e8f4a7986543071f6" have entirely different histories.

3 changed files with 0 additions and 30 deletions

View file

@ -2,5 +2,3 @@
# account_register
<%= @app_dir %>/bin/<%= @name %> eval "Freedive.Release.account_create"
chown -R <%= @user %>:<%= @group %> <%= @data_dir %>

View file

@ -44,29 +44,3 @@ fi
# Migrate database
echo "[migrate] Database"
<%= @app_dir %>/bin/<%= @name %> eval "Freedive.Release.migrate"
# Install inotify-tools
if pkg info inotify-tools > /dev/null 2>&1 ; then
echo "[ok] inotify-tools is installed"
else
echo "[install] inotify-tools"
pkg install -U -y inotify-tools
fi
# Install doas
if pkg info doas > /dev/null 2>&1 ; then
echo "[ok] doas is installed"
else
echo "[install] doas"
pkg install -U -y doas
fi
# Configure doas
touch /usr/local/etc/doas.conf
if ! grep -q "permit nopass <%= @user %> as root" /usr/local/etc/doas.conf ; then
echo "[configure] doas"
echo "permit nopass <%= @user %> as root" >> /usr/local/etc/doas.conf
else
echo "[ok] doas is configured"
fi

View file

@ -2,5 +2,3 @@
# password_reset
<%= @app_dir %>/bin/<%= @name %> eval "Freedive.Release.password_reset"
chown -R <%= @user %>:<%= @group %> <%= @data_dir %>