One can find the solution for this, using Separation of Variables, to be the following:
\begin{align}
u(x,t) &= Cx - \sum_{m \in \mathbb{N}, \text{$m$ odd}} \frac{8 C L}{(m \pi)^2} \cos \left(\frac{m \pi}{2L}\left(L - x\right)\right) \cos \left( \frac{m\pi c^{1/2}}{2L}t\right)
\end{align}
Note that the trick is what is mentioned in the comments, which is to do a change of variables using:
\begin{align}
u(x,t) &= Cx+v(x,t)
\end{align}
and then solving for $v(x,t)$, using the new initial conditions and simpler boundary conditions. With that, you can more easily construct the solution for $u(x,t)$.
To show correctness, a plot below is shown below comparing the above analytical solution with the numerical one. This was done using $L = 10$, $c^{1/2} = 5.8564 \cdot 10^{3}$, and $C = 3.7143 \cdot 10^{-6}$.

Additionally, below is a plot showing the $u(x,t)$ for a set of time values:
