remove some files

This commit is contained in:
Georg Gadinger 2022-01-06 21:13:43 +01:00
parent 96e48a833b
commit 88bee91f68
4 changed files with 0 additions and 106 deletions

View File

@ -1 +0,0 @@
retrospring

View File

@ -1,33 +0,0 @@
# This ASS runscript starts justask in development mode on a FreeBSD host.
# (c) 2015 nilsding
# This file is a modification of https://github.com/retrospring/ass/blob/master/scripts/example-rails.rb
Runscript.new do
before_start do
# set Rails environment to development
setenv :RAILS_ENV, 'development'
# install bundle
sh %|bundle install --without production mysql|
# edit and copy example justask config
sh %|sed -i .old -e 's/justask.rrerr.net/justask.local/g' -e 's/"Anonymous"/"Arno Nym"/g' -e 's/enabled: tru/enabled: fals/g' ./config/justask.yml.example|
sh %|cp ./config/justask.yml.example ./config/justask.yml|
# edit and copy postgres database config
sh %|sed -i .old -e 's/_production/_producktion/g' -e 's/justask_development/ja_devel/g' -e 's/username: postgres/username: nilsding/g' ./config/database.yml.postgres|
sh %|cp ./config/database.yml.postgres ./config/database.yml|
# migrate the database
sh %|bundle exec rake db:migrate|
end
start do
sh %|bundle exec rails server -b 127.0.0.1 -p 16933|, pid: :rails, wait: false
end
stop do
unset :RAILS_ENV
kill :rails, with: :SIGINT
end
end

View File

@ -1,63 +0,0 @@
#!/bin/sh
. /etc/rc.subr
name=justask
rcvar=justask_enable
extra_commands="status"
start_precmd="${name}_prestart"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
status_cmd="${name}_status"
load_rc_config $name
: ${justask_enable:=no}
: ${justask_user=justask}
: ${justask_tmux_session_name=justask}
: ${justask_tmux_window_name=justask}
justask_prestart()
{
su -l "$justask_user" -c "exec sh -c 'tmux list-panes -st $justask_tmux_session_name -F \"#{pane_pid}\" >/dev/null 2>&1'"
if [ $? -eq 0 ]; then
echo "justask already running? pane $justask_tmux_session_name exists"
return 1
fi
return 0
}
justask_status()
{
su -l "$justask_user" -c "exec sh -c 'tmux list-panes -st $justask_tmux_session_name -F \"#{pane_pid}\" >/dev/null 2>&1'"
if [ $? -eq 0 ]; then
echo "justask is running"
return 0
fi
echo "justask is not running"
return 1
}
justask_start()
{
echo -n "Starting justask: "
su -l "$justask_user" -c "exec tmux new-session -d -s $justask_tmux_session_name -n $justask_tmux_window_name -c /home/justask '/usr/local/bin/bash /usr/home/justask/start.sh'"
if [ $? -eq 0 ]; then
printf "\033[32;1mok\033[0m\n"
else
printf "\033[31;1mfailed\033[0m\n"
fi
}
justask_stop()
{
echo -n "Stopping justask: "
su -l "$justask_user" -c "exec sh -c 'tmux list-panes -st $justask_tmux_session_name -F \"#{pane_pid}\"' | xargs -t kill"
if [ $? -eq 0 ]; then
printf "\033[32;1mok\033[0m\n"
else
printf "\033[31;1mfailed\033[0m\n"
fi
}
run_rc_command $1

View File

@ -1,9 +0,0 @@
/* TEAM */
Georg G. (nilsding [at] nilsding [dot] org)
Site: https://nilsding.org
Location: Linz, Austria
Andreas N. (pixeldesu [at] outlook [dot] com)
Site: https://pixelde.su
Location: Germany